i have a button through which a customer can claim his daily rewards. i want that button to be clicked only once a day. how could i do this?
i have no idea how to achieve this functionality
i know i can set it View.gone but i want it to be visible again next day.what should come in the on click of button to get one day time
here is on click of my button what should i do?
@Override
public void onClick(View v) {
super.onClick(v);
switch (v.getId()) {
case R.id.creditClaimBT: {
break;
}
}
}
help would be greatly appreciated.
Copyright Notice:Content Author:「Dude」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/24486644/how-to-make-a-button-clickable-only-once-in-a-day