tags:

views:

101

answers:

4

Hi, 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 the tab should open separate activity.

Thanks in Advance,

A: 

I think this may help

http://developer.android.com/resources/tutorials/views/hello-tabwidget.html

RSK
A: 

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

James.Elsey
A: 

You will not be able to start different activities and still see the tabs. All you can do is have different views, but they will all be part of the same activity.

Matthieu
That is not correct. You can put a different activity in each tab. You can't start a new activity from there without loosing the tabs but you can have an activity for each tab.
Janusz