如何在 xml 的撰写视图中禁用剪辑

JSc*_*ott 5 android android-layout kotlin android-jetpack-compose

我正在尝试禁用剪辑,因此我的撰写视图中的某个项目会被剪辑,但我不完全确定如何执行此操作,我的撰写视图位于 xml 中,因此它看起来有点像这样

    <androidx.compose.ui.platform.ComposeView
    android:id="@+id/viewId"
    android:layout_width="match_parent"
    android:layout_height="80dp"
    app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
       app:layout_constraintStart_toStartOf="parent"
    >
Run Code Online (Sandbox Code Playgroud)

在撰写视图中,我有一个图像,我想使用以下配置禁用剪辑。

       Image(
            painter = painterResource(id = image),
            contentDescription = "home",
            modifier = Modifier
                .offset(xvalue.dp, yValue.dp)
                .background(color = colorResource(R.color.Green), shape = CircleShape)
                .height(25.dp)
                .width(25.dp)
                .padding(5.dp).zIndex(20f).graphicsLayer { clip = false },
            colorFilter = ColorFilter.tint(Color.White)
        )
Run Code Online (Sandbox Code Playgroud)

根据我读到的内容,使用 Clip=false 应该可以工作,但事实并非如此。