T ToolboxZX Member Licensed User Longtime User Apr 24, 2017 #1 In what instance would a spinner not respond to a ColorDrawable? Consider the following code where a spinner "MySpinner" exists: Code: Copy 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?
In what instance would a spinner not respond to a ColorDrawable? Consider the following code where a spinner "MySpinner" exists: Code: Copy 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?
Erel B4X founder Staff member Licensed User Longtime User Apr 25, 2017 #2 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. Upvote 0
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.
T ToolboxZX Member Licensed User Longtime User Apr 25, 2017 #3 Understood. Is there any way to configure that adaptor then to apply a border to the spinner? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 25, 2017 #4 No. It only allows changing the text color. Upvote 0