I am trying to add a customized ProgressDialog
to my Activity
. I successfully changed the ProgressDialog
font and the background colors, but I don't know how to change the spinner color without using a widget. Can anyone help me?
This is my Activity
code:
myPd_bar=new ProgressDialog(Ratings.this,R.style.Theme_MyDialog);
myPd_bar.setMessage("Loading....");
myPd_bar.setTitle(null);
myPd_bar.show();
This is my styles.xml
code:
<style name="Theme.MyDialog" parent="@android:style/Theme.Dialog">
<item name="android:textColor">#daac56</item>
<item name="android:background">#160203</item>
<item name="android:windowFrame">@null</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowIsFloating">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
And this is the current output: