Show the cast icon in light/dark theme as per the corresponding appearance setting on the user's device
- In Android, the cast icon will be part of the application's Activity, hence, the styling (color) can be provided by application's style file.
- Define the style item
vzb_castIconColor
in theapp-style.xml
as shown below. - Create 2
colors.xml
files, one in res/values folder and another in res/values-night folder. - Now, define
colorCastIcon
items and set values to match light/dark theme as shown below. These values are picked based on the device's light/dark theme settings.