Questions tagged [theme-daynight]

Questions related to DayNight theme, that changes colors according to time of the day and battery status.

16 questions
8
votes
1 answer

Colors of the status bar using the DayNight theme in android

I am applying the theme Theme.AppCompat.DayNight.NoActionBar to my application. In the light theme, I want the status bar to be white and in the dark theme, I want it to be dark. I can't get the status bar to be white and the letters to be dark and…
Sergio76
  • 3,835
  • 16
  • 61
  • 88
6
votes
1 answer

BiometricPrompt with DayNight Theme

DayNight Theme has four cases: Device - DARK mode, application - DARK mode Device - LIGHT mode, application - LIGHT mode Device - DARK mode, application - LIGHT mode Device - LIGHT mode, application - DARK mode First and second cases are normal.…
Akbar
  • 430
  • 4
  • 18
5
votes
0 answers

Android application theme change smoothly

I am working on a project where day and night themes available. I am changing themes by night theme: AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES) day…
Kishan Solanki
  • 13,761
  • 4
  • 85
  • 82
2
votes
0 answers

Vector Drawable fillColor gets mutated when using Colors from Day Night Resources

I'm using Theme.AppCompat.DayNight.NoActionBar for App theme and defined color resources for Day and Night theme using values-night qualifier values/colors.xml #282C3C/color> values-night/colors.xml
AlgoCoder
  • 1,706
  • 5
  • 19
  • 40
2
votes
0 answers

How to refresh an AppWidget on MODE_NIGHT_FOLLOW_SYSTEM?

I'm trying to automatically refresh appWidget's layout when user changes Day/Night mode. I have my "day layout" into layout folder, and my "night layout" into layout-night folder. It's the good layout when the AppWidget just installed... but layout…
Sebago
  • 21
  • 1
2
votes
1 answer

Setting DayNight theme using AppCompatDelegate.setDefaultNightMode() not working for FragmentActivity

I'm a bit puzzled. I'm using a DayNight theme in my app (using AppCompatDelegate.setDefaultNightMode()), but can't get it to work in my MainActivity. The MainActivity (which extends FragmentActivity) looks like it's never set to dark theme - it…
Jorn Rigter
  • 745
  • 1
  • 6
  • 25
2
votes
0 answers

Apply DayNight theme to selected fragment

I have an app that consists of two fragments connected with ViewPager. The one on the left has custom background, the one on the right has basic light theme (white background, black text color, etc.). Now I want to implement DayNight theme to the…
Tom11
  • 2,419
  • 8
  • 30
  • 56
1
vote
0 answers

Dark theme does not work on some phones like Samsung S9 and android 13

Dark theme does not work in some devices like Samsung S9 or some with Android 13. And when toggling…
l33t
  • 18,692
  • 16
  • 103
  • 180
1
2