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.
我想要一个行为类似于切换按钮的小部件,并且可以在运行时从代码中更改其背景颜色。那里有这样的小部件吗?
或者有人可以让我朝着正确的方向发展如何开发具有所需功能的 av 小部件吗?样品?
使用setBackgroundColor(color). View它是从类继承的。
setBackgroundColor(color)
View