Google は、黒人コミュニティに対する人種平等の促進に取り組んでいます。取り組みを見る

androidx.compose.material

Interfaces

ButtonColors

Represents the background and content colors used in a button in different states.

ButtonElevation

Represents the elevation for a button in different states.

CheckboxColors

Represents the colors used by the three different sections (checkmark, box, and border) of a Checkbox or TriStateCheckbox in different states.

ElevationOverlay

An ElevationOverlay is an overlay applied to the background color of Surface components, used to emphasize elevation in dark theme, where shadows are not as visible.

Emphasis

Emphasis allows certain parts of a component to be accentuated, or shown with lower contrast to reflect importance / state inside a component.

EmphasisLevels

EmphasisLevels represents the different levels of Emphasis that can be applied to a component.

FloatingActionButtonElevation

Represents the elevation for a floating action button in different states.

RadioButtonColors

Represents the color used by a RadioButton in different states.

SnackbarData

Interface to represent one particular Snackbar as a piece of the SnackbarHostState

SwitchColors

Represents the colors used by a Switch in different states

ThresholdConfig

Interface to compute a threshold between two anchors/states in a swipeable.

Classes

BackdropScaffoldState

State of the BackdropScaffold composable.

BottomDrawerState

State of the BottomDrawerLayout composable.

BottomSheetScaffoldState

State of the BottomSheetScaffold composable.

BottomSheetState

State of the persistent bottom sheet in BottomSheetScaffold.

Colors

Collection of colors in the Material color specification

DismissState

State of the SwipeToDismiss composable.

DrawerState

State of the ModalDrawerLayout composable.

FixedThreshold

A fixed threshold will be at an offset away from the first anchor.

FractionalThreshold

A fractional threshold will be at a fraction of the way between the two anchors.

ModalBottomSheetState

State of the ModalBottomSheetLayout composable.

ResistanceConfig

Specifies how resistance is calculated in swipeable.

ScaffoldState

State for Scaffold composable component.

Shapes

Components are grouped into shape categories based on their size.

SnackbarHostState

State of the SnackbarHost, controls the queue and the current Snackbar being shown inside the SnackbarHost.

SwipeableState

State of the swipeable modifier.

SwipeProgress

Collects information about the ongoing swipe or animation in swipeable.

TabPosition

Data class that contains information about a tab's position on screen, used for calculating where to place the indicator that shows which tab is selected.

Typography

Class holding typography definitions as defined by the Material typography specification.

Annotations

ExperimentalMaterialApi

Enums

BackdropValue

Possible values of BackdropScaffoldState.

BottomDrawerValue

Possible values of BottomDrawerState.

BottomSheetValue

Possible values of BottomSheetState.

DismissDirection

The directions in which a SwipeToDismiss can be dismissed.

DismissValue

Possible values of DismissState.

DrawerValue

Possible values of DrawerState.

FabPosition

The possible positions for a FloatingActionButton attached to a Scaffold.

ModalBottomSheetValue

Possible values of ModalBottomSheetState.

SnackbarDuration

Possible durations of the Snackbar in SnackbarHost

SnackbarResult

Possible results of the SnackbarHostState.showSnackbar call

Top-level constants summary

const Float

Top-level functions summary

Unit
AlertDialog(onDismissRequest: () -> Unit, confirmButton: () -> Unit, modifier: Modifier = Modifier, dismissButton: () -> Unit = null, title: () -> Unit = null, text: () -> Unit = null, shape: Shape = MaterialTheme.shapes.medium, backgroundColor: Color = MaterialTheme.colors.surface, contentColor: Color = contentColorFor(backgroundColor), properties: DialogProperties? = null)

Alert dialog is a Dialog which interrupts the user with urgent information, details or actions.

Unit
AlertDialog(onDismissRequest: () -> Unit, buttons: () -> Unit, modifier: Modifier = Modifier, title: () -> Unit = null, text: () -> Unit = null, shape: Shape = MaterialTheme.shapes.medium, backgroundColor: Color = MaterialTheme.colors.surface, contentColor: Color = contentColorFor(backgroundColor), properties: DialogProperties? = null)

Alert dialog is a Dialog which interrupts the user with urgent information, details or actions.

Unit
BackdropScaffold(modifier: Modifier = Modifier, scaffoldState: BackdropScaffoldState = rememberBackdropScaffoldState(Concealed), gesturesEnabled: Boolean = true, peekHeight: Dp = BackdropScaffoldConstants.DefaultPeekHeight, headerHeight: Dp = BackdropScaffoldConstants.DefaultHeaderHeight, persistentAppBar: Boolean = true, stickyFrontLayer: Boolean = true, backLayerBackgroundColor: Color = MaterialTheme.colors.primary, backLayerContentColor: Color = contentColorFor(backLayerBackgroundColor), frontLayerShape: Shape = BackdropScaffoldConstants.DefaultFrontLayerShape, frontLayerElevation: Dp = BackdropScaffoldConstants.DefaultFrontLayerElevation, frontLayerBackgroundColor: Color = MaterialTheme.colors.surface, frontLayerContentColor: Color = contentColorFor(frontLayerBackgroundColor), frontLayerScrimColor: Color = BackdropScaffoldConstants.DefaultFrontLayerScrimColor, snackbarHost: (SnackbarHostState) -> Unit = { SnackbarHost(it) }, appBar: () -> Unit, backLayerContent: () -> Unit, frontLayerContent: () -> Unit)

A backdrop appears behind all other surfaces in an app, displaying contextual and actionable content.

Unit
BottomAppBar(modifier: Modifier = Modifier, backgroundColor: Color = MaterialTheme.colors.primarySurface, contentColor: Color = contentColorFor(backgroundColor), cutoutShape: Shape? = null, elevation: Dp = BottomAppBarElevation, content: RowScope.() -> Unit)

A BottomAppBar displays actions relating to the current screen and is placed at the bottom of the screen.

Unit
BottomDrawerLayout(drawerContent: ColumnScope.() -> Unit, modifier: Modifier = Modifier, drawerState: BottomDrawerState = rememberBottomDrawerState(BottomDrawerValue.Closed), gesturesEnabled: Boolean = true, drawerShape: Shape = MaterialTheme.shapes.large, drawerElevation: Dp = DrawerConstants.DefaultElevation, drawerBackgroundColor: Color = MaterialTheme.colors.surface, drawerContentColor: Color = contentColorFor(drawerBackgroundColor), scrimColor: Color = DrawerConstants.defaultScrimColor, bodyContent: () -> Unit)

Navigation drawers provide access to destinations in your app.

Unit
BottomNavigation(modifier: Modifier = Modifier, backgroundColor: Color = MaterialTheme.colors.primarySurface, contentColor: Color = contentColorFor(backgroundColor), elevation: Dp = BottomNavigationElevation, content: RowScope.() -> Unit)

BottomNavigation is a component placed at the bottom of the screen that represents primary destinations in your application.

Unit
BottomNavigationItem(icon: () -> Unit, selected: Boolean, onClick: () -> Unit, modifier: Modifier = Modifier, label: () -> Unit = emptyContent(), alwaysShowLabels: Boolean = true, interactionState: InteractionState = remember { InteractionState() }, selectedContentColor: Color = AmbientContentColor.current, unselectedContentColor: Color = selectedContentColor.copy(alpha = ContentAlpha.medium))

A BottomNavigationItem represents a singular primary destination in your application.

Unit
BottomSheetScaffold(sheetContent: ColumnScope.() -> Unit, modifier: Modifier = Modifier, scaffoldState: BottomSheetScaffoldState = rememberBottomSheetScaffoldState(), topBar: () -> Unit = null, snackbarHost: (SnackbarHostState) -> Unit = { SnackbarHost(it) }, floatingActionButton: () -> Unit = null, floatingActionButtonPosition: FabPosition = FabPosition.End, sheetGesturesEnabled: Boolean = true, sheetShape: Shape =