I want to have a transparent background for the Android EditText widget. How is this possible?
try it
android:background="@null"
android:background="@android:color/transparent"
You can also install it using java code
myTextView.setBackgroundColor(Color.TRANSPARENT);
Very simple:
android:alpha="0.5"
Put this property in edittext:
android:background="#00000000"
You can also do this programmatically as follows:
TypedValue value= new TypedValue(); getApplicationContext().getTheme().resolveAttribute(android.R.attr.selectableItemBackground, value, true); myButton.setBackgroundResource(value.resourceId);
EditText, like any other view / component, can be configured in the xml file. You just need to include the attribute below the attributes in the attributes of the EditText.
set this to the layout will
android:background="@color/transparent
and add this to colors.xml
<color name="transparent">#00000000</color>
Use a translucent theme
<activity android:theme="@android:style/Theme.Translucent">