I found several values
folders in my res
folder:
xlarge screens are at least 960dp x 720dp
large screens are at least 640dp x 480dp
normal screens are at least 470dp x 320dp
small screens are at least 426dp x 320dp
res/values-normal/ == res/values-v11/ ???
res/values-xlarge/ == res/values-v14/ ???
Am I right? Or do I need to create another folder called values-xlarge
, values-normal
?
Then inside that Root Linear layout, I again take LinearLayout with layout_height = "0dp" (if you want vertical partition only otherwise layout_height = "wrap_content" and if you need horizontal then make layout_width = "0dp" and layout_weight =1 (1 is for 1 part of the screen you can also put the value in float like ...
On most phones, you can do so by tapping 7 times on the “Build number” inside the “About phone” option. Here is a step by step tutorial on how to enable developer options on Android. Once enabled, go to developer options and scroll down to the “Drawing” section and tap on the “Smallest width” option here.
values-v11
is the values of the API version 11, and values-v14
is the values of the API version 14.
It's worth indicating that i.e. values-v11
will be used for API 11 and higher, unless there's another folder that got higher version. For example if you got values-v11
and values-v14
folders, then values-v11
and will be used on APIs 11, 12, 13 but on API 14 and higher, content of values-v14
will be used
No, this "equation" is not correct:
res/values-normal/ == res/values-v11/ ???
res/values-xlarge/ == res/values-v14/ ???
xlarge
defines screen size (so these values will be used on device with display matching xlarge
requirements) while v14
determines API version (Ice Cream Sandwitch - see here). It is not guaranteed (or even assumed) that every xlarge
devices have to be running v14
API or that every ICS device features xlarge
screen.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With