how can i integrate 2 different layouts for my app.
One for a vertical view and one for a horizontal view?
exp.: vertical – Linear Layout
horizontal – Table Row
greetings and thx in advance!!!
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 could use an orientation listener if you want to do it programmatically:
http://developer.android.com/reference/android/view/OrientationListener.html
Between 0 and 45 degrees, portrait, 45 and 90 landscape, using setContentView().
Or
http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources for the xml (and probably right) way to do it.
Best regards.