Comments (6)
Yes, you are correct. There is also a new setting in Android Q to enable this with a setting (https://developer.android.com/preview/features/darktheme).
I have not yet updated this repository to support these changes. Please can you make a GitHub issue for is on this repository?
Thanks!
from android-mdc-theming.
I don't know of a repository to demonstrate it, but here. I've made a sample for you:
video:
Based on here
My question was about older versions though.
Do you know perhaps if it's possible to check what is the theme or colors of the OS, on Android 8.1 and above?
from android-mdc-theming.
Dark theming support has been added:
0a1147e
from android-mdc-theming.
Do you know though if it's possible to handle older Android versions?
Meaning to query which theme/colors are used?
from android-mdc-theming.
Dark Theming support relies on DayNight functionality in AppCompat. It does handle older versions of Android, but the user cannot change anything in settings (you would have to provide your own in-app toggle for this).
With regards to querying which mode you're currently in (i.e. Either light or dark theme) see:
https://link.medium.com/IeSoyG3JaX
from android-mdc-theming.
I've actually read this article already, but it doesn't say anything about detection on older Android version (9, 8.1 ...).
Are you sure it works there too?
As I remember (of what I've tested) , this API is only for Q.
from android-mdc-theming.
Related Issues (8)
- Bug on "chips" sample: the EditText doesn't allow to remove the chip right away HOT 7
- Question: is it possible to use ExtendedFloatingActionButton to have a progress bar within? HOT 2
- Request: add sample for using ExtendedFloatingActionButton HOT 2
- Question: is BottomSheetDialogFragment shown small on landscape, on purpose? HOT 4
- UI bug in Scrolling demo HOT 1
- round corners not working HOT 6
- Can the chips have dynamic text other than "ChipDrawable"?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-mdc-theming.