Android Question AndroixX Light/Dark mode

fbritop

Active Member
Licensed User
Longtime User
I received today an Xiaomi 10T with AndroidX. My app used to work ok on older devices. Usually I control from the app if the user wants a Night or Day mode (I switch colors from a sub). But now with AndroidX if the OS sets as dark mode, it wont follow my colors (event white turns out to be a wierd black), Lottie animations get a strange color. This is not only from the manifest, if I change for example a small panel to white, it still shows in dark mode.

How can I override the OS color scheme?. My app uses AppCompat v4.0 with #Extends

#Extends: android.support.v7.app.AppCompatActivity

I I use for ex, a red background it shows OK, but if I change it to colors.cyan, the it show a wierd dark green in dark mode.

How can I makey App (or the OS) respect my colors???

Thanks
FBP
 

mcqueccu

Well-Known Member
Licensed User
Longtime User
 
Upvote 0
Top