How to change button text color On Clicking the button using hexa-decimal value? I'm using the below code on MainActivity but not working
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// button.setTextColor(Color.GRAY);
button.setTextColor(Color.(#808080));
}
});