Я использую проект Android (старый проект) на Eclipse.
Я устанавливаю ADT отсюда:
https://dl-ssl.google.com/android/eclipse/
В моем manifest.xml
<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="15" />
фрагмент макета XML:
<Spinner
android:id="@+id/currencySpinner"
style="@style/racommon_spinner_custom_style"
android:layout_width="0dip"
android:layout_height="40dip"
android:layout_weight="0.3"
android:prompt="@string/currency" />
здесь styles.xml
<style name="racommon_spinner_custom_style" parent="@android:style/Widget.Holo.Light.Spinner">
<item name="android:background">@drawable/racommon_spinner_custom_bg</item>
<item name="android:clickable">true</item>
</style>
Здесь можно нарисовать racommon_spinner_custom_bg :
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="true" android:state_pressed="false" android:drawable="@drawable/spinner_selected_custom_border"/>
<item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/spinner_pressed_custom"/>
<item android:drawable="@drawable/spinner_default_custom" />
</selector>
здесь res\drawable-mdpi\spinner_pressed_custom.9.png
![enter image description here](https://i.stack.imgur.com/fbRnq.png)
Вот результат на Android 4.3
![enter image description here](https://i.stack.imgur.com/5YvxW.png)
и вот результат на Android 6.0+
![enter image description here](https://i.stack.imgur.com/lOyBc.png)
Здесь при нажатии на счетчик:
![enter image description here](https://i.stack.imgur.com/SWpoM.png)
Как видите, фон спиннера отличается от Android 4.0. На андроиде 4.0. является правильным фоном прядильщика. Но в андроиде 6.0+ не правильно.
Вот результат генератора из девяти каналов
![enter image description here](https://i.stack.imgur.com/XuhYG.png)
Почему?