b.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
//这个是整个button透明度为0,也用b.getBackground().setAlpha(0);这样只把背景透明
b.setAlpha(0);
handler.sendEmptyMessageDelayed(0, 1000);
}
});
Handler handler = new Handler(){
@Override
public void handleMessage(Message msg) {
b.setAlpha(255);
}
};