更新时间:2023-11-21 14:42:58
在的onClick方法,你需要改变按钮的形象,这种方式。
in onClick method you need to change the Button's image, this way..
public void onClick(View v) {
if(v==buttonName){
buttonName.setBackgroundResource(R.drawable.imageName);
}
}