The second Android 11 Developer Preview is now available, test it out and share your feedback.

MaterialTheme

object MaterialTheme
kotlin.Any
   ↳ androidx.ui.material.MaterialTheme

Contains functions to access the current theme values provided at the call site's position in the hierarchy.

Summary

Properties

ColorPalette

Retrieves the current ColorPalette at the call site's position in the hierarchy.

EmphasisLevels

Retrieves the current EmphasisLevels at the call site's position in the hierarchy.

Shapes

Retrieves the current Shapes at the call site's position in the hierarchy.

Typography

Retrieves the current Typography at the call site's position in the hierarchy.

Properties

colors

@Composable val colors: ColorPalette

Retrieves the current ColorPalette at the call site's position in the hierarchy.


//Unresolved: androidx.ui.material.samples.ThemeColorSample

emphasisLevels

@Composable val emphasisLevels: EmphasisLevels

Retrieves the current EmphasisLevels at the call site's position in the hierarchy.

shapes

@Composable val shapes: Shapes

Retrieves the current Shapes at the call site's position in the hierarchy.

typography

@Composable val typography: Typography

Retrieves the current Typography at the call site's position in the hierarchy.


//Unresolved: androidx.ui.material.samples.ThemeTextStyleSample