How to Set the Background Color in a TextView
android:drawableBottom added in API Level 1
Recommend using this instead: Set the Background Color in a TextView, using Background
1. Add a TextView.
2. In the main.xml file, add the below line. (a black background)
<TextView
....
android:drawableBottom = "#000000"
/>
3. Determine the Hex color you would like and update above line.
Related Articles
- Set the Background Color in a TextView, using Background
- setCompoundDrawablesWithIntrinsicBounds - Add a Drawable Below a TextView
http://developer.android.com/reference/android/widget/TextView.html#attr_android:drawableBottom
http://developer.android.com/reference/android/R.attr.html#drawableBottom