Questions tagged [android-darkmode]

124 questions
0
votes
0 answers

Failed to use ?attr in Android below 21

I'm using dark and light mode in my Android application. I made an attrs.xml file in the values ​​folder. and I adjusted attr values ​. And I created 2 styles in styles.xml for night and light mode. so it works on Android above 21 but doesn't work…
Hasan Cheraghi
  • 867
  • 2
  • 11
  • 26
0
votes
1 answer

Android Dark Mode Behavior

I'm trying to implement dark mode in my application and faced strange behavior of the MODE_NIGHT_YES|MODE_NIGHT_NO flags. I use AppCompatDelegate.setDefaultNightMode(...) to set global dark mode. So when I use MODE_NIGHT_FOLLOW_SYSTEM everything is…
Olexii Muraviov
  • 1,456
  • 1
  • 12
  • 36
-1
votes
1 answer

How to fix image view icon color changes in dark mode and lite mode of the device

I'm trying to include icons in imageview but when the dark mode is on the color is dark and when on lite mode its shows in white, I want color to be white in both modes Vector // icon
-2
votes
1 answer

Dark theme not showing table values in my Android app

My Android app works well when the device is in light mode but when changed the dark mode, the table values no longer show. What may be wrong please?
1 2 3
8
9