Quantcast
Viewing all articles
Browse latest Browse all 77050

How do I get the tabreselect event with tabbar at the bottom on android?

I'm trying to get an event firing when tab item of tabbedpage is reselected.

I've searched trough the forum and found that on Android, I need to create a customrenderer with

void TabLayout.IOnTabSelectedListener.OnTabReselected(TabLayout.Tab tab)
{
//do something
}

But it only triggered when the tabbar is on top.

If is set the tabbar placement to bottom with
On<Xamarin.Forms.PlatformConfiguration.Android>().SetToolbarPlacement(ToolbarPlacement.Bottom);
The "OnTabReselected" above won't be triggered.

So, how do I get the tabreselect event with tabbar at the bottom on android?

Thanks.


Viewing all articles
Browse latest Browse all 77050

Trending Articles