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

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -