2012-03-26 19 views
5

Come posso aggiungere un contorno di testo luminoso in Android?Contorno del testo luminoso in Android.

Ecco un esempio:

enter image description here

+0

questo sembra un font –

+0

In realtà non lo so. Ma sembra proprio .. Ma è un buon esempio. Comunque mi piacerebbe farlo con un font diverso. – Xazen

+1

@Xazen: vedi questo forse utile: [Come rendere il testo risplendente] (http://stackoverflow.com/questions/5692804/how-to-make-text-glow) –

risposta

7

Aggiungi alla tua ombra TextView con x, y = 0 e il valore radious quanto vi piace a brillare.

<TextView android:layout_width="wrap_content" 
android:layout_height="wrap_content" 
android:text="Glowing" 
android:textSize="40sp" 
android:textStyle="bold" 
android:shadowColor="#0000ff" 
android:textColor="#C02938" 
android:shadowDx="0.0" 
android:shadowDy="0.0" 
android:shadowRadius="10"/> 
+0

può essere eseguito solo quando il testo viene toccato? come un bottone? –

+0

puoi usarlo anche in un tag button, non solo in textview – OWADVL