'Checkbox Composable Won't Disable Animation - Android Jetpack Compose
Is there a way to disable the indication animation on the Composable Checkbox?
The typical path of adding the indication = null parameter to the .clickable Modifier doesn't appear to work.
When I looked in the documentation it just directed me to the different modifiers.
Checkbox Composable Documentation
Checkbox(
checked = checkedState.value,
onCheckedChange = {vm.HandleListItemClick(optionItems, i, checkedState)},
modifier = Modifier
.clickable(
interactionSource = interactionSource,
indication = null,
enabled = true,
onClickLabel = "${optionItems[i].label} checkbox selected status is ${checkedState.value}",
role = null,
){},
enabled = true,
)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
