ã¯ããã«
Android Jetpack Composeã§ãåç´Sliderãä½æããæ¹æ³ã«ã¤ãã¦è§£èª¬ã
æ¹æ³
graphicsLayer
ã¨layout
ãä¸è¨ã®ããã«å¤æ´ãããã¨ã«ããå®è£
ã§ããã
@Composable fun MainView(modifier: Modifier = Modifier) { var value by remember { mutableFloatStateOf(0f) } Slider( modifier = modifier .graphicsLayer { rotationZ = 90f transformOrigin = TransformOrigin(0f, 0f) } .layout { measurable, constraints -> val placeable = measurable.measure( Constraints( minWidth = constraints.minHeight, maxWidth = constraints.maxHeight, minHeight = constraints.minWidth, maxHeight = constraints.maxHeight, ) ) layout(placeable.height, placeable.width) { placeable.place(0, -placeable.height) } }, value = value, onValueChange = { value = it } ) }