how to disable button for somtime on click in android studio : I'm using **android studio** and i want to make a button disable when clicked for say 2 seconds and make it enable automatically after 2 seconds. i don't know where to start from. Can someone give me the code for doing this?