Do I need to create All folders for layout for all screen sizes? -
i creating app targeting screen sizes
, densities
. need put layout in folders named-
layout-large-port layout-large-land layout-small-port layout-small-land layout-normal-port layout-normal-land layout-xlarge-port layout-xlarge-land
or there other standard way?
also, text size in each layout? if need large font in xlarge size small font in small size, how adjust same?
android tries find specific match when looking resource. if none found, try less , less specific until match found. example, if you're running on xlarge-land, resource first in layout-xlarge-land
, in layout-xlarge
or layout-land
(not sure order) , in unqualified layout
. means if design layout xml's in such way they're generic, don't have provide every possible bucket.
the supporting different screen sizes section of android developer training goes in detail. includes useful "layout alias" trick can use avoid copy-paste coding.
Comments
Post a Comment