How to Set the Opacity/Transparency of Text in TextView/EditText
android:alpha was added in API Level 11alpha property of the view, as a value between 0 (completely transparent) and 1 (completely opaque).
Must be a floating point value.
For a TextView and EditText this affects the text. If android:backgound is included, the background affected also.
1. Add a TextView in your main.xml file.
2. Ensure to change the minSDKVersion to 11, or greater.
3. In the main.xml file, add the code below.
<TextView
...
android:alpha = ".5"
/>
4. Compile and run!
Related Articles:
- android:textColor - Set the Text Color of a TextView/EditText
- Add Shadow Color Behind Text in TextView/EditText
http://developer.android.com/reference/android/view/View.html#attr_android:alpha
http://developer.android.com/reference/android/R.attr.html#alpha