Respected All
I have to add TabBar in my application, but i don’t know how to add tab bar to application or activity. Can you help me for that.
Thank You
Vikram Kadam
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You have to use a
TabHost.You can find a clear example here. Read the tuto for the explanations, here below you have just the code.
In short :
you need an xml file with some layout for each tab, and an activity to display the tabs :
In your xml tabs.xml :
http://schemas.android.com/apk/res/android”
android:orientation=”vertical”
android:layout_width=”fill_parent”
android:layout_height=”fill_parent”
>
In the
onCreatemethod of your activity :Thanks Jeff for the tuto