📅  最后修改于: 2022-03-11 14:59:01.087000             🧑  作者: Mango
@Override
public void onClick(View v) {
if(v.getId() == R.id.yourbuttonid) {
btn.setText("X");
}else if(v.getId() == R.id.yourbuttonid2){
btn2.setText("X");
}
}