android-dark-theme Questions
8
Solved
I'm designing an Ionic app, and I would like it to have white backgrounds and black texts whether the user has enabled the dark theme or not.
This is what I want:
However, when I enable the dark t...
Trypsin asked 8/9, 2020 at 13:4
19
Solved
I want to create a flutter app that has 2 light and dark mode themes that change by a switch in-app and the default theme is default android theme.
I need to pass some custom color to the fellow wi...
Colander asked 14/2, 2020 at 18:55
1
With the release of Android 10, several widgets (Gmail, Google News, Samsung Email) now update their theme when Dark mode is toggled. I am trying to replicate that behavior. I have a listview widge...
Champagne asked 16/4, 2020 at 12:41
2
Solved
My app uses the Theme.AppCompat.DayNight.NoActionBar AppTheme, and has a navigation drawer. All my drawables are XML vectors and the paths in them are black. For the uses of these drawables that ar...
Linage asked 21/7, 2020 at 6:30
2
Some devices, like Poco F2 Pro, can force dark theme in apps that are not compatible with dark theme.
For example, my app has this theme and is not compatible with dark theme:
<style name="...
Ferreira asked 7/9, 2020 at 12:14
2
Solved
I'm using jetpack compose 1.0.0 and BottomSheetScaffold was working fine, but after I added a feature to change the theme from light to dark with a button, the bottom sheet won't expand after I cha...
Llama asked 5/8, 2021 at 17:49
1
Solved
Run into strange behaviour when trying to add support for dark theme in existing app.
I added values-night folder where I added new colors.xml with different hex for dark mode. Then I extended from...
Jobber asked 16/9, 2022 at 9:58
4
Solved
TL,DR;
ContextCompat.getColor() does not use the night colors (values-night/colors.xml) though it should when night mode is enabled.
Here is the problem:
Hi everyone,
So I'm implementing a dar...
Glassman asked 10/10, 2019 at 12:45
7
Solved
I am looking for a way to enable night mode programmatically with an Android code:
public static void setNightMode(Context target, boolean state){
UiModeManager uiManager = (UiModeManager) target...
Tympanic asked 26/11, 2017 at 11:18
3
Solved
I have two variants of a PNG, one where the drawn text is black and one where it is white. By default, on a white background, I am using the black image variant, but when the system dark mode is en...
Cartilage asked 20/11, 2020 at 5:23
3
Solved
According to the docs, I only need to set android:forceDarkAllowed=true in my activity manifest and inherit theme from parent="Theme.MaterialComponents.DayNight". I tried that, but it did...
For asked 2/2, 2020 at 14:2
7
When I enable the dark mode some menu on my app looking bad: black text on very dark background. I'm totally a beginner on color things.
I never touched anything on the default color settings on a...
Rayon asked 23/11, 2020 at 15:46
3
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) bu...
Ulrick asked 1/4, 2021 at 0:26
4
Solved
I tried to delete night theme.xml, and I tried to make color changes in night theme. I also tried
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
But none of these worked.
...
Floreated asked 12/2, 2021 at 6:47
1
Solved
My new app doesn't support dark mode. When I install it on Xiaomi (with dark mode truned on) MIUI applies dark mode on it. MIUI has settings at "Settings -> Display -> More Dark mode opt...
Spermatid asked 24/3, 2021 at 14:42
3
So far I have learnt from google, you have to use Theme.Appcompat.Daynight or Material Daynight theme to make your app support dark mode. And you need to use different styles.xml in values and valu...
Lebar asked 24/9, 2020 at 18:11
3
Solved
I'm trying to support the Android Q Dark theme for my Android app and I can't figure out how to import different assets based on the theme I'm currently in.
Im using the official DayNight theme fo...
Implicit asked 28/8, 2019 at 4:29
1
I have about three hundred layouts in my application and I want to implement dark theme for it. Currently, I am trying to find out if there any errors that are related to background colors. In orde...
Abelmosk asked 8/2, 2020 at 12:33
3
Solved
On android 10, negative images i.e images with inverted color are displayed in the notification from custom-notification apps when dark mode is enabled.
How to prevent that from happening?
Notifi...
Auriol asked 25/1, 2020 at 15:37
3
Our app relies on AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES) to make us pick up Light and Dark theme colors from values/colors and values-night/colors
But every time w...
Flail asked 15/8, 2019 at 20:37
3
Solved
In newer version of Android Studio
In values directory there is theme.xml and theme.xml(night)
Can any point out differences between them ??
Does it replace styles.xml ??
Hive asked 14/10, 2020 at 12:10
1
Solved
I need to know if user has enabled dark theme in the OS level so that I can enable dark theme in my app automatically.(not force dark mode)
Lavonna asked 2/9, 2020 at 8:29
2
I can't seem to be able to get android web view to use dark theme or use
@media (prefers-color-scheme: dark)
I am using AndroidX with DayNight theme
Does anyone has a solution that is backward ...
Methodology asked 13/1, 2020 at 17:2
1
Solved
When I turn on dark mode in my app, the icon of some dialogs is not visible because they are dark. I created those drawables with the "New Image Asset" option in the Android studio. is there any sp...
Theca asked 11/6, 2020 at 14:20
1
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 st...
Maurits asked 23/3, 2020 at 17:44
1 Next >
© 2022 - 2024 — McMap. All rights reserved.