[Solved] What is (button) in android? [duplicate]


(Button) is a typecast. Every widget that comes back from findViewById is a View. To treat it as a button, you must explicitly tell the compiler that it is a Button.

More information on findViewById here, in the Android documentation:
http://developer.android.com/reference/android/app/Activity.html

1

solved What is (button) in android? [duplicate]