title: Hide bottom tab bar in tabbed page in Android with Xamarin.Forms
body: <p>I created a tabbed page and set the navigation bar to the bottom. Now I need to hide the Navigation Bar on a specific page. For iOS I used this Renderer: <a href="https://wojciechkulik.pl/xamarin-forms/auto-hiding-tab-bar-on-navigation" rel="nofollow noreferrer">here</a>, but I couldn't found a similar solution for Android. I tried it with this: </p>
  
  <pre><code>public TabbedPageRendererDroid(Context context) : base(context)
          {
  
          }
  
          protected override void OnElementPropertyChanged(object sender, PropertyChangedEventArgs e)
          {
              base.OnElementPropertyChanged(sender, e);
  
              if (e.PropertyName == "IsHidden")
              {
                  TabLayout TabsLayout = null;
                  for (int i = 0; i &lt; ChildCount; ++i)
                  {
                      Android.Views.View view = (Android.Views.View)GetChildAt(i);
                      if (view is TabLayout)
                          TabsLayout = (TabLayout)view;
                  }
                  if ((Element as CustomTabbedPage).IsHidden)
                  {
                      TabsLayout.Visibility = ViewStates.Invisible;
                  }
                  else
                  {
                      TabsLayout.Visibility = ViewStates.Visible;
                  }
              }
          }
  </code></pre>
  
  <p>This does only work with a normal navigation bar on top, but not with a bottom navigation bar and the app crashes with this Error: <code>System.NullReferenceException</code>. </p>
  
  <p>Is there any solution for Android, thanks in advance.</p>