I have to add two layout for two different device both with same resolution but different screen size. Since both are taking the same layout i.e. hdpi. If i am trying to change text size for one device it becomes smaller for the device with smaller screen size.
Asked
Active
Viewed 538 times
2 Answers
0
If you are setting your text size in px, this is not the way to do it, but use sp.
Take a look at this disscussion about the advantaces of dp and sp.
0
You can define different size in dimen.xml
file of different size value
folder

Piyush
- 18,895
- 5
- 32
- 63

Patel Hiren
- 305
- 2
- 11
-
I did that. But there are some devices that have same resolution but their screen size varies due to this some of the text that fits the screen becomes larger for other devices with same resolution but smaller display size. – user3557296 Apr 29 '15 at 06:01