List Item
fun ListItem(modifier: Modifier = Modifier, style: ListItemStyle = LocalListItemStyle.current, text: String, disclosureEnabled: Boolean = false, disclosureIconRes: Int?, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, startContent: @Composable RowScope.() -> Unit? = null, endContent: @Composable RowScope.() -> Unit? = null, label: String? = null, subtitle: String? = null, motion: Motion<ListItemMotionStyle> = rememberListItemMotion(motionContext = rememberMotionContext(interactionSource)))
Deprecated
Use ListItem with disclosureIconSource
Replace with
ListItem(disclosureIconSource = resourceImageSource(disclosureIconRes))Content copied to clipboard
fun ListItem(modifier: Modifier = Modifier, titleContent: @Composable () -> Unit, style: ListItemStyle = LocalListItemStyle.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, disclosureEnabled: Boolean = true, labelContent: @Composable () -> Unit? = null, subtitleContent: @Composable () -> Unit? = null, startContent: @Composable RowScope.() -> Unit? = null, endContent: @Composable RowScope.() -> Unit? = null, disclosureContent: @Composable RowScope.() -> Unit = { ListItemDisclosure(style, interactionSource) })
Компонент ListItem
Parameters
modifier
модификатор
title Content
заголовок элемента
style
стиль компонента
interaction Source
источник взаимодействий
disclosure Enabled
включен ли disclosure
label Content
подпись элемента
subtitle Content
подзаголовок
start Content
контент в начале
end Content
контент в конце
disclosure Content
контент в disclosure
fun ListItem(motion: Motion<ListItemMotionStyle>, titleContent: @Composable () -> Unit, modifier: Modifier = Modifier, style: ListItemStyle = LocalListItemStyle.current, disclosureEnabled: Boolean = true, labelContent: @Composable () -> Unit? = null, subtitleContent: @Composable () -> Unit? = null, startContent: @Composable RowScope.() -> Unit? = null, endContent: @Composable RowScope.() -> Unit? = null, disclosureContent: @Composable RowScope.() -> Unit = { ListItemDisclosure(style, motion) })
Компонент ListItem
Parameters
motion
объект анимаций
modifier
модификатор
title Content
заголовок элемента
style
стиль компонента
disclosure Enabled
включен ли disclosure
label Content
подпись элемента
subtitle Content
подзаголовок
start Content
контент в начале
end Content
контент в конце
disclosure Content
контент в disclosure
fun ListItem(modifier: Modifier = Modifier, style: ListItemStyle = LocalListItemStyle.current, text: String, disclosureEnabled: Boolean = false, disclosureIconSource: ImageSource? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, startContent: @Composable RowScope.() -> Unit? = null, endContent: @Composable RowScope.() -> Unit? = null, label: String? = null, subtitle: String? = null, motion: Motion<ListItemMotionStyle> = rememberListItemMotion(
motionContext = rememberMotionContext(interactionSource),
))
Компонент ListItem
Parameters
modifier
модификатор
style
стиль компонента
text
текст элемента
disclosure Enabled
включена ли иконка
disclosure Icon Source
источник иконки disclosure
interaction Source
источник взаимодействий
start Content
контент в начале
end Content
контент в конце
label
лэйбл
subtitle
сабтайтл
fun ListItem(modifier: Modifier = Modifier, style: ListItemStyle = LocalListItemStyle.current, title: String, disclosureEnabled: Boolean = false, disclosureIcon: Painter? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })
Deprecated
Use ListItem with disclosureIconRes
Компонент ListItem
Parameters
modifier
модификатор
style
стиль компонента
title
текст элемента
disclosure Enabled
включена ли иконка
disclosure Icon
иконка
interaction Source
источник взаимодействий