How to Use colorRadius in a Text Shadow in a TextView/EditText
added in API Level 1Radius of the shadow. Must be a positive floating point value. (1, 1.2, etc.)
1. Add a TextView in the main.xml file.
2. In the main.xml file, add the code below. (This makes a teal shadow color.)
shadowRadius without shadowColor will do nothing.
The bigger the number the wider the 'glow' look of the shadow around the text. shadowRadius is like the length of colored pixels around the text.
<TextViewThe bigger the number the wider the 'glow' look of the shadow around the text. shadowRadius is like the length of colored pixels around the text.
...
android:shadowColor = ""#008080""
android:shadowRadius="6"
/>
3. Compile and run!
Related Articles:
- Add Shadow Color Behind Text in TextView/EditText
- Use colorDx in a Text Shadow in a TextView/EditText
- Use colorDy in a Text Shadow in a TextView/EditText
- Set the Background Color for a TextView, using Background
- Change the Background Color of an EditText
- How to Set the Background Color in a TextView, using drawableBottom
Resources:
http://developer.android.com/reference/android/widget/TextView.html#attr_android:shadowRadiushttp://developer.android.com/reference/android/R.attr.html#shadowRadius