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

[ad_1]

(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

[ad_2]

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