Questions tagged [android-darkmode]

124 questions
3
votes
1 answer

how to forced UI of android app to light mode

if device mode is dark mode then how to forced to our android App UI select light mode .. in my app background is white and text color is black , but in some devices dark mode is enable then background is show as black and text color is also black .…
Naeem Ullah
  • 43
  • 1
  • 3
3
votes
1 answer

Can I apply night mode without restarting the activity?

While creating an Android app, I want to create a function that allows you to set the dark mode in a dialog window created from a fragment. As a result of finding a way to set the dark mode, almost all developers use the restart activity. Is there a…
hanjiman
  • 465
  • 1
  • 6
  • 17
3
votes
2 answers

Android Night Mode Follow System does not work correctly

I implemented the dark theme using DayNight material themes in my app. I followed several articles and conference talks on the internet. Everything worked well until some small things started to occur. Let me explain: The app has several activities.…
3
votes
1 answer

How to not let dark mode on phone affect my website?

when a phone has darkmode set in the system UI it affects the html and css on my website, e.g. changing colors. I don't want this to happen. Is there a way to stop the UI dark mode from changing the style of my html? Below are the snippets that I…
user12165978
3
votes
2 answers

Android Dark Mode: Elevation Not Changing Surface Color

I'm following google's excellent blog post to make a dark theme for my app, but I don't see any reference on how I get the elevation effects on my views(buttons, app bar, etc) to work. For example when I set my app theme to