Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
290 views

Formatted String Resource Not Appearing When Dark Theme Enabled

I've been running through the first two parts of this Android Developer CodeLab. I've created a working tip-calculator with no issues until I've implemented Dark Theme. Without Dark Theme enabled, my ...
John Harrington's user avatar
0 votes
1 answer
3k views

Drawable file wont change color in Dark Mode

Im currently working on a LoginActivity, I wanted to make an rounded Linear to put the Edittext's inside, I used an XML file to round the corners of them, but the only problem is, that they wont ...
NuiDev's user avatar
  • 121
0 votes
2 answers
1k views

Change Material Button Theme in Dark Mode

Please Help Me. While changing the theme from light mode to dark mode. How do I change the button's theme from filledbutton to outlinedbutton? I saw an app from play store. Here I noticed that the ...
user avatar
0 votes
1 answer
904 views

Can I force a specific layout to use dark mode in Android?

I have a common view that shared between so many layouts. This view already has day/night configed. There's a new view that will <include> this common layout. However, this new view will have ...
user1865027's user avatar
  • 3,647
5 votes
1 answer
2k views

How to test the Android Dark Mode using Espresso

What is the best way to test the different DayNight themes on Android using Espresso? (or something better?) I haven't found anything on the internet. I thought this must be something big because of ...
Andre Thiele's user avatar
  • 4,131
3 votes
2 answers
2k views

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....
Andre Thiele's user avatar
  • 4,131
7 votes
1 answer
5k views

react native force light mode in android app

when I run my react native app in the emulator (pixel android 10), I noticed that the app change the white background to black when the phone set to dark mode. this made hard to read the black text or ...
Mohammad's user avatar
  • 103