Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
82 views

I'm trying to implement dark theme in my app using this doc as a guide. My app uses Theme.MaterialComponents.DayNight.NoActionBar theme and there is values-notnight resource folder for colors in light ...
Denis Sergeev's user avatar
1 vote
0 answers
126 views

I am experiencing an issue in my Android app related to using WebView in a fragment while forcing a theme mode opposite to the system's current mode. When the system is in dark mode, I force light ...
rou's user avatar
  • 11
1 vote
0 answers
114 views

I've created an app which is working as expected. The app is only running on an Android device with a dark mode theme, and should always appear dark. I did notice one small visual bug I would like to ...
PDA's user avatar
  • 31
1 vote
0 answers
98 views

I want my widget to change font color when the user switches darkmode. I have a widget, let's say with a background image and a textview: <LinearLayout xmlns:android="http://schemas....
Mathias's user avatar
  • 4,011
1 vote
2 answers
433 views

According to this documentation, if we want to enable edge-to-edge on API 34 and lower devices, we must call this method in the activity: override fun onCreate(savedInstanceState: Bundle?) { ...
danial's user avatar
  • 155
0 votes
1 answer
237 views

I have an activity that uses bottom navigation for fragments and an options menu to choose the theme. The problem is when I change the theme the fragment changes as well to the first one, not the one ...
Alex's user avatar
  • 1
2 votes
0 answers
235 views

I have trouble with text color in dark mode on some Xiaomi devices with android 10. The component is clickable Box with text, if item selected - the text color is back and box is white and vise versa. ...
tasjapr's user avatar
  • 1,288
2 votes
0 answers
490 views

I'm trying to use OSMDroid library in my Compose Android app. I used this approach and it works great, but when I change to dark mode in my app, the map becomes just a grid, and no tiles are displayed....
Pion Developer's user avatar
1 vote
1 answer
617 views

How I can change the background of statusbar based on device theme in real time ? I wrote the following code and I wanted whenever I toggle my device's dark or light mode the statusbar change as well, ...
Reza dev's user avatar
1 vote
2 answers
672 views

I am new in UI development, I was asked above question in the interview. I got confuse because as per my understanding there is no difference. Kindly guide me is there is any difference.
Indrajeet4192's user avatar
4 votes
0 answers
583 views

I use android splash screen api for my app splash screen. I implemented the dark mode theme for my app and everything is working. But on some devices, like the Samsung devices with Android 13 (API 33) ...
Baset Esmaeili's user avatar
0 votes
1 answer
125 views

How to support dark mode for In-App review flow (review pop up) when application is in dark mode? I have implemented android play in-app review flow. Flow working correctly but review pop is shown in ...
Ashvin Patel's user avatar
2 votes
1 answer
832 views

Actually it seems very easy. I just want my view not to change its color when DARK THEME is applied. But it keeps changing. I have even created colors/night and edited theme/night to keep my colors. ...
Turok's user avatar
  • 49
0 votes
1 answer
918 views

In my Android project currently under development, there are many Fragments in Activity. And inside the Fragment, RecyclerView is used to show multiple Items to the user. What I want is that when the ...
H.JiMan's user avatar
  • 390
0 votes
1 answer
80 views

The dark mode on my web page has a quite different contrast on my mobile phone screen (Android), depending whether the screen is dimmed or not. Any guidelines to choose colors so that the contrast is ...
rwitzel's user avatar
  • 1,860
39 votes
3 answers
23k views

I am following https://developer.android.com/jetpack/compose/tutorial and the code @Preview(name = "Light Mode") @Preview(name = "Dark Mode", uiMode = Configuration....
rofrol's user avatar
  • 15.4k
0 votes
0 answers
252 views

I added adaptive themes in my application using List Preferences and it does not work. Sometimes when I create Build APK and test Preferences, the theme it sets to dark for a second and returns to the ...
Mihai-Cristian Condrea's user avatar
1 vote
0 answers
1k views

the problem is: When I open the application, I set the theme according to the theme of the device. In android code it is = mode_night_follow_system. Let's imagine that the theme of the system(device) ...
Sky's user avatar
  • 520
0 votes
2 answers
1k views

I am creating a React Native app with light and dark modes. The colors of all components in the app are controlled with my custom hook: export const useColors = (): UseColorsResult => { const ...
Anton L.'s user avatar
  • 838
2 votes
0 answers
445 views

I have an Android app which supports night mode by inheriting the theme from Theme.MaterialComponents.DayNight.NoActionBar. This works perfectly fine. However, for a specific View, I want to force ...
ubuntudroid's user avatar
  • 4,047
2 votes
0 answers
318 views

I have the next code to force dark mode depending the store of the user. if (storeProvider.shouldForceDarkMode) { appProvider.theme = AppProvider.AppTheme.DARK AppCompatDelegate....
Rubearen's user avatar
1 vote
1 answer
3k views

I created a simple project and added the flutter_native_splash package. I am running this project on my android phone via USB. If my phone is in light mode splash screen works fine. But in the dark ...
Brutal's user avatar
  • 932
0 votes
1 answer
3k views

I have a project with two apps written in React Native. Since I do not currently support a dark theme, users with dark-mode enabled on their devices get bad colors in my app. Therefore I want to ...
Crystalii's user avatar
  • 197
4 votes
2 answers
5k views

I have a Gmail (web app) based email signature with PNG images hosted on a server (please see the code below). I was just updating this signature to accommodate for "dark mode" and suddenly ...
bartsamuel's user avatar
2 votes
0 answers
3k views

I am implementing Dark/Light mode in android. Implementated using below code: Theme: Theme.MaterialComponents.DayNight.NoActionBar AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO)...
Mayura Savaliya's user avatar
0 votes
1 answer
488 views

I want the same display as in the lightmode when darkmode is on. Is there an easier way without hardcoding every textfields,buttons etc.
Shehar's user avatar
  • 873
1 vote
2 answers
1k views

Hello‚ I had a problem with the night mode in my program. Switching from the phone system to night mode did not change the black text to white. It was just black. I found a solution through ...
NONAME's user avatar
  • 27
1 vote
1 answer
583 views

We are trying to implement Dark mode after following this blog. Everything seems to be working except when we try to update the Dark Mode in mobile settings (after the initial launch ). The App in the ...
Pardeep Sharma's user avatar
0 votes
1 answer
1k views

My app has an activity for appearance with a switch to turn dark mode on or off. However, when I change the theme, sometimes it changes everything correctly and sometimes it changes just a few ...
Carvalho_vinii's user avatar
2 votes
1 answer
338 views

I have a feature requirement to implement dark mode in my old Legacy project which uses a mixture of AppCompact Activities and normal Activities and is roughly more than 1500 files. I want to ask if ...
Dawood Ilyas's user avatar
0 votes
1 answer
724 views

I have a coordinator layout which has a bottom sheet. By default, my bottom sheet's background is transparent. So I put color/white as the background res for the parent layout. This works fine in ...
SmallGrammer's user avatar
  • 1,463
1 vote
1 answer
241 views

I am creating an ExpandableListView and its adapter (ExpandableListAdapter, using a SimpleExpandableListAdapter) by doing something like this. It works fine in light mode, but the text remains black ...
axby's user avatar
  • 333
2 votes
0 answers
43 views

I made some spinners in my activity and made drawable resources for them, but when I turn off dark mode on my phone it looks weird. how can I define things to change when I am not in dark mode. For ...
Jayur Pithava's user avatar
0 votes
1 answer
312 views

First see this picture below [white mode 1] https://i.sstatic.net/QKcju.jpg [white mode 2] https://i.sstatic.net/QKcju.jpg [Dark mode 1 ] https://i.sstatic.net/QKcju.jpg [Dark mode 2 ] https://i....
Kalyan Mishra's user avatar
14 votes
2 answers
23k views

Hello fellow developers. I've developed and Android App using Android Studio, but I only took into account the layout themes for light mode. Here's how it looks: So now, when I switch my phone to ...
Alcachofra's user avatar
0 votes
0 answers
179 views

In my app i have a settings activity to change app to dark mode with SwitchPreference and when there is change in preference app move to MainActivity - parent activity and the MainActivity ...
sanoj lawrence's user avatar
12 votes
3 answers
5k views

I'm mainly using the Android emulator for development. Is there a quick way (ideally a keyboard shortcut) to switch between dark mode and light mode for testing the dark/light themes?
don's user avatar
  • 1,627
-1 votes
1 answer
5k views

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 <vector ...
Vasant Raval's user avatar
0 votes
1 answer
4k views

Hello i want to know that how can i set a fixed color to ui elements wheather the android device is in light mode or in dark mode Here in my case there are some issues where the View in light mode of ...
Vasant Raval's user avatar
2 votes
0 answers
200 views

disabled the dark mode for the application with <item name="android:forceDarkAllowed">false</item> But in the input in the case, when you need to remove Span, the textСolor is ...
RusyaMed's user avatar
  • 161
0 votes
1 answer
55 views

I want to use dark mode in my layout. I have tried this: attr.xml: <?xml version="1.0" encoding="utf-8"?> <resources> <attr name="myColor" format="...
HOSSEIN B's user avatar
  • 333
3 votes
6 answers
13k views

I want to disable darkmode in app based on a flag Programmatically. I have defined custom colors in the values-night folder for darkmode. I have tried the following solutions for disabling darkmode ...
Shyam's user avatar
  • 891
2 votes
0 answers
147 views

I would like to detect dark mode on my android device running Node.js from termux. Also I can't use electron, phantom.js or any other "rendering" library. Is it possible? If not I will ...
dev_null's user avatar
4 votes
3 answers
4k views

I'm having a big issue managing dark mode manually. How does the app work On application startup the first activity checks in SharedPreferences if the user chose to enable dark mode or to stay in ...
x-devel's user avatar
  • 153
1 vote
0 answers
42 views

I'd like to know whether a schedule is enabled to automatically switch day/night themes (ie based on sunset time). Is this possible? I'm building a library, so user interaction is not an option. ...
Nino van Hooff's user avatar
2 votes
3 answers
3k views

I'm trying to implement an option to let the users specify if they want the app to load the theme based on the system settings (dark or light, i.e., if the device is set to use dark mode or not) but I ...
FerFig's user avatar
  • 123
11 votes
4 answers
12k views

I've been experimenting with Jetpack compose and I've noticed that although the text colour updates correctly for Text when you switch to dark mode, the text colour for TextField or OutlinedTextField ...
Barry Irvine's user avatar
  • 13.9k
0 votes
1 answer
311 views

I have application, which set mode dark mode in Application: AppCompatDelegate.setDefaultNightMode(isDarkModeOn() ? AppCompatDelegate.MODE_NIGHT_YES : AppCompatDelegate.MODE_NIGHT_NO); It works ...
Michalsx's user avatar
  • 3,651
0 votes
0 answers
294 views

I'm about to implement the dark theme in my Android app. The problem, I've got is the text color of my selected spinner. -> It is "Black" as the background... This problem occurs if I set the values ...
Franklin84's user avatar
1 vote
1 answer
4k views

I can use @media (prefers-color-scheme: dark) or window.matchMedia('(prefers-color-scheme: dark)').matches to detect whether it's a dark mode the OS. However, is there any way that I can modify the ...
AGamePlayer's user avatar
  • 7,820