Custom Tabbed Page Renderer Xamarin Android

3.9k Views Asked by At

So know how to set up a custom renderer (only partially apparently) with an OnElementChanged method. I followed this (http://forums.xamarin.com/discussion/17654/tabbedpage-icons-not-visible-android)

protected override void OnElementChanged(ElementChangedEventArgs<TabbedPage> e)
    {
        base.OnElementChanged(e);
        _activity = this.Context as Activity;
    }

This gets hit, but it never displays the page afterwards.

Anyone have any ideas?

2

There are 2 best solutions below

3
ArbiterUnknown On BEST ANSWER

It is showing up now. I had to use the base class of TabbedRender rather than TabbedPageRenderer. I also had to add this.SetWillNotDraw(false) in the CustomRenderer constructor.

0
AudioBubble On

Here you can find a full TabbedPageRenderer ready to be modified. It comes directly from Xamarin.Forms Android.
Still I'm trying to set a different Font Size...