android - Use TextSwitcher with custom Typeface -


i use textswitcher opposed textview because of animations available, know how use custom typeface text? don't want use default font.

just use android:fontfamily attribute each child textview.

<textswitcher . . .>     <textview         android:fontfamily="..."         . . . />      <textview         android:fontfamily="..."         . . . />  </textswitcher> 

the textswitcher alternate between 2 textview children, using font family (typeface) specify.


Comments

Popular posts from this blog

All overlapping substrings matching a java regex -

c++ - Using OpenSSL in a multi-threaded application -

php - Deleting/Renaming a locked file -