Search code examples
androidandroid-tvleanback

Changing Background Color Of Playback icons in leanback


I am using PlaybackOverLayFragment in Android Tv for playback controls.I want to change the background color when particular icons are selected.But not able to find any public methods to do .Below I have attach the image for clarity.See the playicon background image i.e what I want to change to some other color.


Solution

  • I'm going to share the answer Dake gave in the G+ Android TV Developers community just as a reference for anyone else wondering the same thing.

    You can override the focusable resource in your app res/drawable-v21/lb_control_button_primary.xml

    Or, even simpler, you can override the color @color/lb_control_button_color