How to Add Shadow Color Behind Text in TextView/EditText
added in API Level 1Place a shadow of the specified color behind the text.
1. Create an Android project, if you don't already have one.
3. In the main.xml file, add the code below. (This makes a teal shadow color.)
shadowColor without shadowRadius will do nothing.
<TextView...
android:shadowColor = ""#008080""
android:shadowRadius="1"
/>
4. Determine the Hex color you would like and update above line.
5. Compile and run!
Related Articles:
- Use colorDx in a Text Shadow in a TextView/EditText
- Use colorDy in a Text Shadow in a TextView/EditText
- Use colorRadius 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/R.attr.html#shadowColor