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 = BackdropScaffoldDefaults.PeekHeight, headerHeight: Dp = BackdropScaffoldDefaults.HeaderHeight, |