Home Changing the circular spinner color in ProgressDialog
Reply: 0

Changing the circular spinner color in ProgressDialog

user5600
1#
user5600 Published in September 20, 2018, 10:23 pm

I am trying to change the circular spinner color in ProgressDialog but unable to do it using colorAccent. The theme I am using is 'android:Theme.Holo.Dialog'.

Why I am using this style: I just want to show the spinner but not the text. this works like a charm using the link.
Create a progressDialog only with the spinner (in the middle)

Could you suggest how can I achieve this.

thanks R

progressDialog = new ProgressDialog(getActivity(), R.style.MyProgressDialogTheme);

<style name="MyProgressDialogTheme" parent="android:Theme.Holo.Dialog">
        <item name="android:alertDialogStyle">@style/CustomAlertDialogStyle</item>
        <item name="android:windowBackground">@color/transparent</item>
        <item name="android:colorAccent">@color/colorPrimary</item>
        <item name="android:textColorPrimary">#FFFFFF</item>
        <item name="android:backgroundDimEnabled">false</item>
        <item name="android:textColor">#FFFFFF</item>
        <item name="android:textStyle">normal</item>
        <item name="android:textSize">12sp</item>
    </style>

    <style name="CustomAlertDialogStyle">
        <item name="android:bottomBright">@color/transparent</item>
        <item name="android:bottomDark">@color/transparent</item>
        <item name="android:bottomMedium">@color/transparent</item>
        <item name="android:centerBright">@color/transparent</item>
        <item name="android:centerDark">@color/transparent</item>
        <item name="android:centerMedium">@color/transparent</item>
        <item name="android:fullBright">@color/transparent</item>
        <item name="android:fullDark">@color/transparent</item>
        <item name="android:topBright">@color/transparent</item>
        <item name="android:topDark">@color/transparent</item>
    </style>

<color name="transparent">#00000000</color>
<color name="colorPrimary">@color/blueyPurple</color>
<color name="blueyPurple">#673AB7</color>
share|improve this question

1 Answer 1

active oldest votes
up vote 0 down vote
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.324994 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO