Code Monkey home page Code Monkey logo

Comments (6)

ricknout avatar ricknout commented on August 28, 2024

Hi @AndroidDeveloperLB,

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.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on August 28, 2024

I don't know of a repository to demonstrate it, but here. I've made a sample for you:

My Application.zip

video:

2019-05-27_21-26-38.zip

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.

ricknout avatar ricknout commented on August 28, 2024

Dark theming support has been added:
0a1147e

from android-mdc-theming.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on August 28, 2024

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.

ricknout avatar ricknout commented on August 28, 2024

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.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.