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 -

jsp - java.sql.SQLException: [Microsoft][ODBC Microsoft Access > Driver] Too few parameters. Expected 1 -

delphi - When I encode/decode SMS PDU (GSM 7 Bit) user data, do I need prepend the UDH first? -