Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在 android 中将 CheckBox 设置为 checked="false" 时,有一个灰色的复选框和灰色的复选标记,看起来它已经被选中。我根本不希望显示任何复选标记,也不希望框变灰。只是一个没有复选标记的白框。甚至没有一个变灰的。
首先,自定义复选框可能不是一个好主意,但如果您需要这样做,您可以创建一个带有两个单独图像的按钮,用于开/关 png。然后将可绘制的复选框设置为该按钮。