title: How to dynamically set title on a Xamarin Android dialog activity?
body: <p>I have 2 activities on Xamarin Android. Note that the second one is styled to open as a dialog.</p>
  
  <pre><code>[Activity(Label = nameof(ActivityOne), HardwareAccelerated = true, ScreenOrientation = Android.Content.PM.ScreenOrientation.Portrait)]
  public class ActivityOne : Activity { ... }
  
  [Activity(Label = nameof(ActivityTwo), HardwareAccelerated = true, ScreenOrientation = Android.Content.PM.ScreenOrientation.Portrait, Theme = "@android:style/Theme.Holo.Dialog")]
  public class ActivityTwo : Activity { ... }
  </code></pre>
  
  <p>The first one calls the second one like this:</p>
  
  <pre><code>var activity = new Intent(this, typeof(ActivityTwo));
  StartActivity(activity);
  </code></pre>
  
  <p>When the second activity opens I want to be able to set a title on the dialog dynamically.</p>
  
  <p>I tried by doing this on the second activity's creation:</p>
  
  <pre><code>protected override void OnCreate(Bundle bundle)
  {
      base.OnCreate(bundle);
      SetContentView(Resource.Layout.ActivityTwo);
      SetTitle(Resource.Id.title);
  
      ...
  }
  </code></pre>
  
  <p>where title is defined as a "hidden" textview in ActivityTwo.axml:</p>
  
  <pre><code>&lt;TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/title"
    android:text="Example Title"
    android:visibility="gone" /&gt;
  </code></pre>
  
  <p>But this is what I am getting as the dialog title on running the application:</p>
  
  <p><img src="https://i.imgur.com/pDPgS94.png" alt="dialog activity title"></p>
  
  <p>Also without the SetTitle line, the title is simply "ActivityTwo". Can anybody help me figure out this problem?</p>