How does Android uses values folders? -
i have font size defined in dimens.xml (e.g <dimen name="name_text_size">12sp</dimen>
)
since size wasn't ok on screens created additional folders different values:
- values-xhdpi
- values-xlarge-mdpi
- values-large-mdpi
i thought should enough, since before creating layouts text ok on ldpi, mdpi , hdpi screens, font became large. problem not able figure out file takes value these screens. initially, thought uses default value folder "values", no layout using value. can me understand(i sow providing documentaion , support multiple screens) how folders working , how optimize number of defined resources (e.g. xhdpi , large-mdpi have same values)?
the solution simple create following folders:
- values-ldpi
- values-mdpi
- values-hdpi
but don't want make things more complicated must be.
thanks in advance :)
you can provide different string text in each values-folder. once run can check folder taking string values.
you can achieve trick.
Comments
Post a Comment