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.
我有一个带有矩形的自定义视图:
mCanvas.drawRect(0, 0, 50, 50, paint);
我想根据触摸输入更改矩形的填充。
绘制矩形后如何更改油漆?
你不能那样改变油漆。您需要重新绘制矩形。