Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

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

$
0
0

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



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>