Android Question Spinner with no arrow

Rachbob

Member
Licensed User
Hello,

I want to use a spinner in my app. But it doesn't appear correctly there is no arrow.any help Thank you.
 

Attachments

  • Screenshot_20200127-100728.jpg
    Screenshot_20200127-100728.jpg
    32.2 KB · Views: 184

JohnC

Expert
Licensed User
Longtime 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.
 
Upvote 0

JohnC

Expert
Licensed User
Longtime 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>
)
 
Upvote 0
Top