My app's theme is set to Holo.Light
but I have a dark actionbar so the cast button displays as grey and still uses the old button style (changes to blue when connected) and it is not easy to see nor does it fit with my apps look.
I have downloaded the new icon set found here https://developers.google.com/cast/docs/downloads but I dont know how to use the animation drawable provided
In my MenuItem
where do I put the animation drawable?
<item android:title="Cast images" app:showAsAction="always"
android:orderInCategory="1"
app:actionProviderClass="android.support.v7.app.MediaRouteActionProvider"
android:id="@+id/media_route_menu_item"/>
I looked at this question How do I change the style of the MediaRouteButton in the ActionBar? but it didnt really answer because I already have those images in the proper drawable folders\
Edit
this is what my animation drawable looks like
name ic_media_route_connecting_mono_light.xml
<animation-list
xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false">
<item android:drawable="@drawable/ic_media_route_on_0_mono_light" android:duration="500" />
<item android:drawable="@drawable/ic_media_route_on_1_mono_light" android:duration="500" />
<item android:drawable="@drawable/ic_media_route_on_2_mono_light" android:duration="500" />
<item android:drawable="@drawable/ic_media_route_on_1_mono_light" android:duration="500" />
</animation-list>