@Override
public void onClick(View v) {
v.setBackgroundResource(R.drawable.choose_answer);
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
@Override
public void onClick(final View v) {
new Thread(()->{
v.setBackgroundResource(R.drawable.choose_answer);
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}).start();
}