I am struggling for layouts for an Android app. I have defined different layouts for different screen sizes and the current layout directory structure is something like this:
- layout
- layout-land
- layout-small
- layout-xlarge
- layout-xlarge-land
Problem
The main layout directory files are being displayed for 3.7 to 7.0
which is a very broad range. And text overlap on small screens and if I adjust on small; it becomes very tiny on the large screen.
According to me, the layout small files should be rendered for smaller screens but those files are only rendered for android wear devices.
layout-xlarge seems to work for Nexus 9 to Nexus 10
I want to know, how can I define the different layout for 3.7-5.0
and 5.0-7.0
screen sizes.
sw<N>dp
configuration qualifiers which define the smallest width (sw) in dp of the screen in use. For example, I have run into size qualifiers classifying a Nexus 6 as a "tablet", but I was able to remedy this knowing that device is under sw600dp, the cutoff for standard 7" tablets. Source: developer.android.com/guide/practices/… – M. Palsichsw<N>dp
qualifier. The 320dp layout file is displayed for3.7
to6.0
. Any solution? – Alena