How to set dropdown background for transparent in AutoCompoteTextView in Android?

As the subject suggests, how to set a transparent background in the AutoCompleteTextView drop-down list. I can apply any style to the view (TextView) that appears in the drop-down list, but in order to make the picture itself transparent, I can not do it!

Any hints or solution?

thanks

+8
android android-layout android-widget
source share
3 answers

Thank you, I got what I was looking for, I can change the background image of the dropdown menu using setDropDownBackgroundResource (); and set translucent png.

+15
source share

install android: popupBackground for # 0FFF in xml

+13
source share

You have two options:

XML attribute:

android:popupBackground

Background for popup. It can be a color value, in the form of "#rgb", "#argb", "#rrggbb" or "#aarrggbb".

Java attribute

setDropDownBackgroundResource

Sets the background of the autocomplete drop-down list.

+7
source share

All Articles