Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android screen size,values-v11,values-v14

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?

like image 425
LK Yeung Avatar asked Aug 31 '12 19:08

LK Yeung


People also ask

How to set layout according to screen size in android?

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 ...

How do I change the smallest width on Android?

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.


2 Answers

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

like image 200
xagema Avatar answered Sep 28 '22 07:09

xagema


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.

like image 35
Marcin Orlowski Avatar answered Sep 28 '22 07:09

Marcin Orlowski