Best way to define Android layout files for multiple devices?

What is the standard / best way to determine the size of elements in Android layout files to account for Android devices with all types of screens?

For example: I used LinearLayout to organize several child elements (TextViews, Buttons) one by one horizontally or vertically for a ListView. However, on a smaller device, I might want to scale the elements down or compress some elements, but save the rest.

I would be grateful for the input. Thanks

+3
source share
2 answers

There is an entry in this guide for Android developers: http://developer.android.com/guide/practices/screens_support.html

drawable-hdpi, drawable-mdpi drawable-ldpi. .

+2

.

: . (, -, -, -hdpi) . , (hdpi, large ..) .

+1

All Articles