Tabs in android are at the top of the screen. My suggestion is to follow the native format as users are used to this. You should also look at the fragmenttabspager demo https://github.com/xamarin/monodroid-samples/blob/master/Support4/Support4/Activities/FragmentTabsPager.cs. I believe tabs at bottom is custom On Aug 24, 2012 3:38 PM, "dickies" <[email protected]> wrote:
> Hi - > > New to Mono for Android and have been following this tutorial: > http://docs.xamarin.com/android/tutorials/User_Interface/tab_layout > > All good, until I added a ListView onto one of the Activities that gets > loaded on a tab. When I added an ItemClick event onto the ListView and used > StartActivity, the tabs disappeared and the UI just showed the new > Activity. > > private void HandleClick (object sender, AdapterView.ItemClickEventArgs e) > { > var t = _list[e.Position]; > var intent = new Intent(); > intent.SetClass(this, typeof(DealCategoriesActivity)); > StartActivity(intent); // this loads the new activity, but wipes the tabs! > } > > This makes sense that it should do this, but I want to keep the tabs at the > bottom because I'm porting from an iOS app which uses a UITabBarController. > I've probably just missed something very obvious. > > Can anyone post an example on how I could go about this? > > > > -- > View this message in context: > http://mono-for-android.1047100.n5.nabble.com/How-to-keep-tabs-at-the-bottom-of-the-screen-tp5711545.html > Sent from the Mono for Android mailing list archive at Nabble.com. > _______________________________________________ > Monodroid mailing list > [email protected] > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid >
_______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
