I’m trying to handle screen-rotation myself and I need to know: How do I tell my activity to use another .xml file for the new layout? I’ve tried different things but none of them worked.
Best regards
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 do not handle it in code, rather, you put your other layout file (with the same name) in the appropriate folder (then Android does the rest).
Like this (pseudo-code):
Link:
http://developer.android.com/guide/practices/screens_support.html