Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using default font styles in Android

How do you use the Android default font sizes in xml?

I tried:

android:textAppearance="@android:style/TextAppearance_Large"

But I get:

error: Error: No resource found that matches the given name (at 'textAppearance' with value '@android:style/TextAppearance_Large').

like image 319
hpique Avatar asked Aug 04 '10 11:08

hpique


People also ask

How do I use OTF files on Android?

To change font styles in GO Launcher, copy the TTF or OTF font files on your phone. Long press on the home screen and select GO Settings > Font > Select Font. Pick the font you want or tap Scan to add files stored on your device. This won't be a system-wide change but will include the menus and app icons.

What is the default font in Android?

Roboto is the default font on Android, and since 2013, other Google services such as Google Play, YouTube, Google Maps, and Google Images.


1 Answers

Isn't it

android:textAppearance="?android:attr/textAppearanceLarge"

for a TextView?

like image 100
Benny Skogberg Avatar answered Sep 29 '22 23:09

Benny Skogberg