android 判断view是不是button

public void onClick(View arg0)如何判断arg0是不是一个Button?
2025-05-22 21:33:31
推荐回答(1个)
回答1:

if (v instanceof Button) {

}