Reputation: 133
In Html we could use em, and it would adjust the size and format of everything to the appropriate size despite Resolution. Does android have a unit of measurement that adjusts views to its appropriate sizes and formats despite the different screen resolutions?
Upvotes: 0
Views: 453
Reputation: 38098
You normally use dp for View sizes.
And sp for font sizes.
Upvotes: 2
Reputation: 28583
Android uses scalable points or SP
here is a sample
<TextView
android:id="@+id/textView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Sample Text - 26sp"
android:textSize="26sp" />
Upvotes: 2