Hi guys/mates/llaves
This is how i resolved my issue.
Android Manifesto
...
<resources>
...
<style name="miComboBox" parent="android:Widget.Spinner">
<item name="android:clickable">true</item>
<item name="android:textColor">@color/textColorPrimary</item>
<item name="android:textStyle">normal</item>
<item name="android:background">@drawable/background_spinner</item>
</style>
...
</resources>
...
@drawable/background_spinner maps the file
"background_spinner.xml" which must be copied to the folder
"Objects\res\drawable"
Here is the contents of
"background_spinner.xml"
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<layer-list>
<item>
<shape>
<gradient android:angle="90" android:endColor="@android:color/transparent" android:startColor="@android:color/transparent" android:type="linear" />
<stroke android:color="#c0c0c0" />
<corners android:radius="0dp" />
<padding android:bottom="3dp" android:left="3dp" android:right="3dp" android:top="3dp" />
</shape>
</item>
<item android:right="2dp">
<bitmap android:gravity="center_vertical|right" android:src="@drawable/gradient_spinner" />
</item>
</layer-list>
</item>
</selector>
And that's the result:
View attachment 68253
Additionally, I reduced the image size to 32x32 pixels.
Finally, don't forget to mark the folder "
drawable" as
Read-Only once you add the resources (xml files and images) .... if you don't do it, the Big Bad Wolf will come to eat that files, when generating the application.
Hope it helps someone.
Best regards,