How to implement tabs in Android
How to implement tabs in Android.
I am having a context. In that I want 3 tabs named Free,TOP,Paid.Clicking on each of开发者_JAVA技巧 the tab should open separate activity.Thanks in Advance,
Firstly, follow this tutorial from the android page, it will explain how to implement a few tabs
What you will probably want to do is to create 3 separate activities and bind each of those to a tab, so when you click on a tab icon/header it will create an intent and call startActivity
on the relevant activity
I've had a look into the following recently and have documented my findings on creating tabs and refreshing tab views, might be a helpful read to you
精彩评论