In what instance would a spinner not respond to a ColorDrawable?
Consider the following code where a spinner "MySpinner" exists:
B4X:
Dim cdw as Color Drawable
cdw.Initialize2 (Colors.Transparent, 10,3,Colors.Red)
MySpinner.Background = cdw
Adding this code on 3 devices produces the desired result. A transparent background with a red border around the spinner. But on a Samsung GalaxyTab A it appears to ignore it completely. Android version is 6.0.1
Is there a method for achieving the desired results?
The spinner uses an adapter to create the interfaces of the selected item and the list of items.
You shouldn't replace the background drawable as it will be overridden by the adapter.