tree: c52f73ac465f3f8c3cdca7b23a3d1269abcef2e9 [path history] [tgz]
  1. api/
  2. src/
  3. build.gradle.kts
  4. gradle.properties
  5. README.md
themeadapter-material/README.md

Material Theme Adapter

Maven Central

Material Theme Adapter enables the reuse of MDC-Android Material 2 XML themes, for theming in Jetpack Compose.

Usage

This library attempts to bridge the gap between MDC-Android Material 2 XML themes, and themes in Jetpack Compose, allowing your composable MaterialTheme to be based on the Activity's XML theme:

MdcTheme { // MaterialTheme.colors, MaterialTheme.typography and MaterialTheme.shapes // will now contain copies of the context's theme } 

For more information, visit the documentation: https://google.github.io/accompanist/themeadapter-material

Download

repositories { mavenCentral() } dependencies { implementation "com.google.accompanist:accompanist-themeadapter-material:<version>" } 

Snapshots of the development version are available in Sonatype's snapshots repository. These are updated on every commit.