Android Question Spinner with no arrow

JohnC

Expert
Licensed User
Another possible cause is that the code right after you are doing a ProgressDialogShow (if that is what you are using) might be "blocking" code that is holding up the main thread and preventing the spinning circle animation from playing properly.
 

Rachbob

Member
Licensed User
It works now. But the color of arrow is always white. The background must be darker if i want it visible.
 

JohnC

Expert
Licensed User
The color might be white because that's the devices default color theme/scheme.

You can place code like this in your apps manifest that can probably change that color:

B4X:
CreateResource(values, colors.xml,
<resources>
   <color name="actionbar">#FF1E90FF</color>
   <color name="statusbar">#FF1E90FF</color>
   <color name="textColorPrimary">#ffffffff</color>
   <color name="navigationBar">#FF0044A6</color>
</resources>
)

CreateResource(values, theme.xml,
<resources>
    <style name="MyAppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
        <item name="colorPrimary">@color/actionbar</item>
        <item name="colorPrimaryDark">@color/statusbar</item>

        <item name="colorAccent">#1E90FF</item>  <!-- seekbar,, checkboxes,, switches,, + meterial dialogs etc. -->       
        
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
        <item name="windowActionModeOverlay">true</item>
    </style>
</resources>
)
 
Top