androidxamarinxamarin.androidcustom-renderertabbed-view

Custom Tabbed Page Renderer Xamarin Android


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?


Solution

  • 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.