Reputation: 1121
So I'm going through the main layout for my app and I have one layout folder "layout" the activity for my app has way to many text views and buttons on it to be able to use a relative layout with moving 1 thing and messing up the entire layout. I've been trying to figure out a way to just force the app into screen compatibility mode with my current layout (frame layout with just using margins) and it's displaying all messed up and nasty.
Does anyone know of a better way to support different screens?
Also, the answer to your first question is:Yes. I have gone through the Supporting multiple screens and screen compatibility mode in the documentation.
Upvotes: 1
Views: 125
Reputation: 131
Use the nested layouts.For 10 inch tablet you have to specify layout-xlarge For 9 inch tablet specify layout-sw720dp see the below link for more details http://developer.android.com/guide/practices/screens_support.html
Upvotes: 2
Reputation: 3480
Hi williams you can create different layouts for screen sizes such as
layout-large, layout-small, layout-xlarge ,
So u can manage the screen sizes by creating different layout folders. And then copy your layout XML files to different layouts and you can modify the text fields , buttons ..etc as the screen size .
Upvotes: 0
Reputation: 658
my suggestion is to use nested linear layout and for different screen sizes you have to create different layout folders in your app such as layout_small,layout_large,layout_xlarge,layout_land then copy your xml files into these folders and make changes based on that
Upvotes: 0