xml - Android hdpi/mdpi/ldpi for Values folder? -


android allows define hdpi/mdpi/ldpi drawable folder in order account different sized screens/devices. wondering if same support can applied values folder (or layout folder)? reason being, typically define "sizes.xml" file holds standard dp sizes apply margins , paddings. same sp sizes text. i'd adjust values based on phones dpi.

yes, believe in res/ folder can use "configuration qualifiers". example, can have values-sw600dp-mdpi-land/ folder.

see "using configuration qualifiers": http://developer.android.com/guide/practices/screens_support.html#qualifiers

i first noticed looking @ google's iosched app sample code, @ res folder: https://github.com/google/iosched/tree/master/android/src/main/res

you'll see have "values-sw600dp-land", "values-w400dp" , "values-v17" folders, name few.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -