androidx.xr.glimmer
UI components for building augmented Android XR experiences
Interfaces
ButtonGroupState |
A state object that allows querying and controlling the state of a |
Classes
ButtonSize |
ButtonSize represents the different size variants of a |
Colors |
A set of named color parameters for a |
ComponentSpacingValues |
A set of named component spacing values for |
DepthEffect |
The depth effect establishes a sense of hierarchy by using shadows to occlude content underneath. |
DepthEffectLevels |
Jetpack Compose Glimmer components can use |
GlimmerTheme |
Jetpack Compose Glimmer contains different theme subsystems to allow visual customization across an application. |
IconSizes |
A set of named icon sizes. |
IconToggleButtonColors |
Represents the colors used by an |
Shapes |
Jetpack Compose Glimmer surfaces can use different shapes. |
SurfaceDepthEffect |
Represents the |
ToggleButtonColors |
Represents the colors used by a |
Typography |
The Jetpack Compose Glimmer type scale includes a range of contrasting styles that support the needs of your product and its content. |
Objects
ButtonDefaults |
Default values used for |
ButtonGroupDefaults |
Default values used with |
CardDefaults |
Default values used for |
IconButtonDefaults |
Default values used for |
IconToggleButtonDefaults |
Contains default values used by |
ListItemDefaults |
Default values used for |
SurfaceDefaults |
Contains default values used by |
TitleChipDefaults |
Default values used for |
ToggleButtonDefaults |
Contains default values used by |
TypographyDefaults |
Contains the default style values used by |
Composables
ActionCard |
ActionCard is a version of a card that contains a primary |
Button |
Button is a component used for exposing actions to a user. |
ButtonGroup |
A ButtonGroup is a horizontal container for multiple |
Card |
Card is a component used to group related information into a single digestible unit. |
ContainedVoiceInputIndicator |
A voice input indicator with a background container that displays sound activity to the user. |
GlimmerTheme |
Jetpack Compose Glimmer contains different theme subsystems to allow visual customization across an application. |
Icon |
An icon component that draws |
IconButton |
IconButton is a component used for exposing supplementary actions with a single tap. |
IconToggleButton |
A Jetpack Compose Glimmer icon toggle button that changes its appearance depending on the |
ListItem |
ListItem is a component used to represent a single item in a |
Text |
High level element that displays text and provides semantics / accessibility information. |
TitleChip |
Title Chip is a component used to provide context for associated content, such as a |
ToggleButton |
A Jetpack Compose Glimmer toggle button that changes its appearance depending on the |
VoiceInputIndicator |
A voice input indicator that displays sound activity to the user. |
rememberButtonGroupState |
Creates and remembers a |
surface |
A surface is a fundamental building block in Glimmer. |
Modifiers
contentColorProvider |
Provides |
depthEffect |
Renders shadows for the provided |
onIndirectPointerGesture |
A |
Top-level functions summary
ButtonGroupState |
@RememberInCompositionCreates a |
Color |
calculateContentColor(backgroundColor: Color)Calculates the preferred content color for |
Top-level properties summary
ProvidableCompositionLocal<Dp> |
CompositionLocal containing the preferred size of an icon. |
ProvidableCompositionLocal<TextStyle> |
CompositionLocal containing the preferred |
Top-level functions
ButtonGroupState
@RememberInComposition
fun ButtonGroupState(initialItemIndex: Int = 0): ButtonGroupState
Creates a ButtonGroupState.
| Parameters | |
|---|---|
initialItemIndex: Int = 0 |
item index to be scrolled to when |
| See also | |
|---|---|
rememberButtonGroupState |
|
Saver |
calculateContentColor
fun calculateContentColor(backgroundColor: Color): Color
Calculates the preferred content color for backgroundColor. This will return either Color.White or Color.Black, depending on the luminance of the background color.
| See also | |
|---|---|
surface |
|
contentColorProvider |
Top-level properties
LocalIconSize
val LocalIconSize: ProvidableCompositionLocal<Dp>
CompositionLocal containing the preferred size of an icon. This value will be used by Icon by default - it can be overridden with a size modifier.
LocalTextStyle
val LocalTextStyle: ProvidableCompositionLocal<TextStyle>
CompositionLocal containing the preferred TextStyle that will be used by Text components by default.