I worked in a tabactivity, I set the gravity for tabs as bottom. If I change the screen from portrait to landscape, I can’t see the tabs.
How can I do it? I need an example please.
Thanks.
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.
Assuming you do not have a separate XML file dedicated to landscape format, you might need to create one and specify the landscape-layout look.
Create another
main.xmlfile with the specifics of how your program should look in landscape mode. The file shoud reside inside yourres/layout-land/folder.When that is all said and done, in potrait orientation, Android will use
main.xmlfound inres/layoutand in landscapemain.xmlfound inres/layout-land.