Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I specify a smaller font than textAppearanceSmall?

Tags:

android

In android, I can specify text appearance like this:

 <TextView
            android:id="@+id/text"
            android:textAppearance="?android:attr/textAppearanceSmall"/>

Can you please tell me how can I specify a even smaller size than "textAppearaneSmall"?

like image 660
michael Avatar asked Oct 28 '11 19:10

michael


1 Answers

You can also set the text size with the dp and sp units like this:

android:textSize="10sp"
like image 191
Bosah Chude Avatar answered Oct 11 '22 22:10

Bosah Chude