The method of removing the dividing line has been found for a long time, and finally found a way to change the split line
The spinner and Autocompletetextview hint list has a black dividing line in the middle, and if you want to change its color value, rewrite the style.
1. Write a style in themes
<style name= "Applicationtheme" parent= "@android: Style/theme.light" > <item name= "Android: Dropdownlistviewstyle "> @style/myspinnerstyle</item> </style> <style name=" Myspinnerstyle "parent=" Android:style/widget.listview.dropdown "> <item name=" Android:divider "># 00000000</item> <item name= "android:dividerheight" >1dp</item> </style>
2. The style is called in the manifest of the activity where the control resides
<activity android:name= ". MainA " android:configchanges=" orientation|keyboardhidden|screensize " android:screenorientation=" Portrait " android:windowsoftinputmode=" Adjustpan " <span style=" Background-color:rgb (255, 0, 0); " >android:theme= "@style/applicationtheme" </span> > <intent-filter> <action Android:name= "Android.intent.action.MAIN"/> <category android:name= "Android.intent.category.LAUNCHER" /> </intent-filter> </activity>
The list is the style without the split line.
Change the color of spinner, Autocompletetextview split lines in Android