0
votes

whenever I run my app in real device with dark mode on, the color of my views in xml changes automatically but they would be same whenever I use application in Light mode how can I avoid this and make app run in same colors any all kind of themes?

1
What views change exactly? can you give us an example? - Bogdan Android
The background color of my image view is white and text colour is black,but in devices with dark mode on the color changes background color to black and text color to white - prathamesh jadhav

1 Answers

0
votes

Try and set colors for the same in each theme.xml file. Alternative would be to delete theme folder altogether, set apptheme in manifest to android:theme="@style/Theme.Design.Light.NoActionBar" and rebuild project. This works for me.