Glowing text contour in android.
Asked Answered
P

1

7

how can I add a glowing text contour in android?

Here is an example:

enter image description here

Papilloma answered 26/3, 2012 at 7:50 Comment(4)
Actually I don't know. But it looks like it.. But it is a good example. However I would like to do it with a different font.Papilloma
@Papilloma : see this maybe helpful :How to make text glowMalony
Thanks. But unfortunately I need to do it with contour.Papilloma
@Xazen: then use LinearGradient for this see my ans : add shadow on custom text?Malony
T
8

Add shadow to your textview with x , y = 0 and Radious value as much as you like to glow.

<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"/>
Truthfunction answered 26/3, 2012 at 8:45 Comment(2)
can this be done only when the text is touched? like a button?Dowzall
you can use this in a button tag too, not only in textviewEnoch

© 2022 - 2024 — McMap. All rights reserved.