开发者

How to implement tabs in Android

开发者 https://www.devze.com 2023-01-19 05:23 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消