How can I set a different xml layout file for each Android version? like what you do for the strings, you make a folder called values-es and there will be the strings for spanish version, is there a way to do that with xml layouts?
Share
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’ll want to create different folders for each version like this(for example):
layout-v11– this layout folder will be used when the API version is Honeycomb or above(replace
11with the android version you want to create layouts for other versions).See this link for more information -> http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources