2015年10月6日 星期二

[Android] Text size and different android screen sizes

reference: http://stackoverflow.com/questions/9877946/text-size-and-different-android-screen-sizes


@forcelain I think you need to check this Google IO Pdf for Design. In that pdf go to Page No:77 in which you will find how there suggesting for using dimens.xml for different devices of android for Example see Below structure :
res/values/dimens.xml

res/values-small/dimens.xml

res/values-normal/dimens.xml

res/values-large/dimens.xml

res/values-xlarge/dimens.xml
for Example you have used below dimens.xml in values.
<?xml version="1.0" encoding="utf-8"?>
<resources>
   <dimen name="text_size">18sp</dimen>
</resources>
In other values folder you need to change values for your text size .


other reference:
http://blog.csdn.net/kazeik/article/details/8268721

沒有留言:

張貼留言