Edited Question:
Mobile Resolution:
I would like to design different screen dpi like following resolutions.
320x480,
48
First you create the different values folders for different screens.and put the size according to the screens
in res->values->dimens.xml
file and call the simple font size using "@dimen/text_size"
.
res/values/dimens.xml
res/values-small/dimens.xml
res/values-normal/dimens.xml
res/values-xlarge/dimens.xml
//for small
15sp
//for normal
20sp
//for large
30sp
//for xlarge
40sp
and retrieve the font size in TextView
as given below.