broakenmedia/MultiContactPicker

Changing the spinner color

Closed this issue · 1 comments

Hi,

Is there a way to change the loading spinner color?

Thanks.

I believe the spinner uses the "colorAccent" attribute. You can set this in a custom theme:

<style name="MyCustomPickerTheme" parent="MultiContactPicker.Azure">
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorPrimary</item>
    <item name="mcpToolbarTheme">@style/MyCustomToolbarTheme</item>
    <item name="mcpListPopupWindowStyleTheme">@style/MyCustomToolbarTheme</item>
</style>