gpt4 book ai didi

android - 如何将按钮设置为灰色且不可点击?

转载 作者:IT老高 更新时间:2023-10-28 21:54:09 25 4
gpt4 key购买 nike

我想将按钮设置为不可点击并且看起来像按钮的深灰色图像?

这可能吗?

最佳答案

来自xml:

android:enabled="false"

来自代码

button.setEnabled(false);

关于android - 如何将按钮设置为灰色且不可点击?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5019857/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com