title: How to use an image rather than Activity Label in top-left corner of MainActivity in Xamarin Android (API 23)
body: <p>At the top-left corner of the main activity of my Xamarin Android app (using API 23) I currently have a simple text that is set with the command below. </p>
  
  <pre><code>[Activity(Label = "Activity Name", MainLauncher = true, Icon = "@drawable/appIcon", ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation, ScreenOrientation = ScreenOrientation.Portrait)]
  </code></pre>
  
  <p>This line is put just before the </p>
  
  <pre><code>public class MainActivity : Activity
  {
    // code for main activity
  }
  </code></pre>
  
  <p>and as a result I can see the text "Activity Name" in the top-left corner of  my app.<br>
  I was wondering how can I use an image instead in that top-left corner. I have seen that the Label property of the Activity class only accept a string, so the changing the Label won't work. But I have seen apps that have some icon or image rather than the activity name, so I was wondering what is the process to achieve this?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I have tried with the following lines in the OnCreate() method of the MainActivity:</p>
  
  <pre><code>var actionBar = this.ActionBar;
  actionBar.SetIcon(Resource.Drawable.appIcon);
  actionBar.SetLogo(Resource.Drawable.appIcon);
  //actionBar.SetIcon(Resources.GetDrawable(Resource.Drawable.appIcon));
  </code></pre>
  
  <p>but none of them works. There is no error, it just doesn't show any image but only the original text I passed as Label (in my example "Activity Name").
  I also tried removing the label completely cause I thought it might take the whole space where the image is supposed to be shown, but that still doesn't solve my issue. I did this by adding also:</p>
  
  <pre><code>actionBar.SetDisplayShowTitleEnabled(false);
  </code></pre>
  
  <p>I am sure this is the right place for the code since if I use actionBar.Subtitle I can see the subtitle is added correctly in the action bar. 
  Not sure if this is relevant, but I also have the following in the AssemblyInfo.cs</p>
  
  <pre><code>[assembly: Application(Theme = "@android:style/Theme.Material.Light")]
  </code></pre>
  
  <p>As mentioned, I am using Xamarin and API 23, to make my app comparinle,with Android 6.0+.</p>