title: HOWTO: Manipulate Back Arrow Icon and Button on Navigation Bar (Xamarin Forms / Android)
body: <p>I am attempting to change the size of the back arrow in the navigation bar.</p>
  
  <p>Using information from <a href="https://www.liudeyun.net/xamarin-custom-navbar-icon-text/" rel="nofollow noreferrer">this</a> article, I have added the following code:</p>
  
  <pre><code>protected override Task&lt;bool&gt; OnPushAsync(Page view, bool animated)
  {
      var result = base.OnPushAsync(view, animated);
  
      var activity = (Activity) Context;
      var toolbar = activity.FindViewById&lt;Toolbar&gt;(Resource.Id.toolbar);
  
      if (toolbar != null)
      {
          if (toolbar.NavigationIcon != null)
          {
              if (toolbar.NavigationIcon is DrawerArrowDrawable navigationIcon)
              {
                  // Code goes here?
              }
          }
      }
  
      return result;
  }
  </code></pre>
  
  <p>If this is indeed the correct <em>path</em>, what code goes in the area marked by the comment "Code goes here?"?</p>
  
  <p><strong>* UPDATE *</strong></p>
  
  <p>I realized that what I am trying to figure out was not exactly described in my original question.</p>
  
  <p>More specifically, when I mentioned that I am trying to resize the navigation bar back arrow, what I am really trying to do is to resize the <em>button</em> that the icon appears on.</p>
  
  <p>For example, if I shrink the height of the navigation bar using code like the following:</p>
  
  <pre><code>On&lt;Android&gt;().SetBarHeight(100);
  </code></pre>
  
  <p>The button that the icon appears on will be clipped.</p>
  
  <p>Ultimately, what I am trying to accomplish is resizing the icon <em>AND</em> the button that the icon appears on. I have already figured out how to do the former.</p>