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

sql server - NHibernate incorrectly creating ManyToMany table - Cannot define PRIMARY KEY constraint on nullable column error -

All overlapping substrings matching a java regex -

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