I want to make a text glow, as in this question , but according to the text of the button with a transparent background in the layout with a different background (png from drawable), is there a way to do this? Is the solution to this day? I tried a simple test on my 4.1.2 device without any results. Here is my code:
activity_main.xml:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:background="@color/Black"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView android:textColor="@color/White"
android:layout_width="wrap_content"
android:text="Glowing Text"
android:layout_height="wrap_content"
android:padding="2dp"
android:shadowColor="@color/White"
android:shadowDx="0"
android:shadowDy="0"
android:shadowRadius="3" />
</LinearLayout>
and this is color.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="White">#FFF</color>
<color name="Black">#000</color>
<color name="Grey">#7F7F7F</color>
<color name="DarkGrey">#4F4F4F</color>
<color name="Green">#0F0</color>
<color name="TransparentGrey">#7F000000</color>
</resources>
got it from this tutorial . Can anybody help me?
source
share