Take the 2-minute tour ×

I created a sample app in andoid. i tested it with HTC and everythig looks fine . But later when I run the program on Higher Resolution phone the test appears smaller. How can I make the rext appear same size even if the resolution changes in android? Thanks

share|improve this question
Basically what Graham Borland says. You may also want to look at this link for supporting multiple screen sizes / densities. developer.android.com/guide/practices/screens_support.html –  Squonk Oct 14 '11 at 16:26
add comment

1 Answer

up vote 6 down vote accepted

Make sure you're specifying the text size in dp (density-independent pixels) or sp (scaled pixels based on preferred font size), not px (pixels).

share|improve this answer
add comment

Your Answer


