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

Glib GIOChannel -

android - change the return key -

All overlapping substrings matching a java regex -