disable button in android studio

C#
myButton.setEnabled(false); 
Source

Also in C#: