可以更改可点击文本的突出显示吗?

发布于 2025-01-15 17:16:17 字数 479 浏览 4 评论 0原文

我有一个 @Composable Text("Dropbox") ,其 Modifier 也实现了

clickable {
    //..
}

But 当我点击它时

在此处输入图像描述

,它会得到灰色突出显示!?

输入图片此处描述

我不想要这个灰色突出显示。我可以摆脱这个吗?

I have a @Composable Text("Dropbox") whose Modifier also implements a

clickable {
    //..
}

But when I tapping on it

enter image description here

, it gets a grey highlight!?

enter image description here

I do not want this grey hightlight. Can I get rid of this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

安穩 2025-01-22 17:16:17

这里induction负责显示高亮。
因此,使 induction = null 应该可以完成这项工作

.clickable(
    onClick = {
        //..
    },
    indication = null,
    interactionSource = remember { MutableInteractionSource() }
)

Here indication is responsible for showing the highlight.
So making indication = null should do the job

.clickable(
    onClick = {
        //..
    },
    indication = null,
    interactionSource = remember { MutableInteractionSource() }
)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文