Android Question Layout file button click event

Stern0m1

Member
Licensed User
I'm loading a layout file to a panel in code that has a button.

How do I declare a click sub?

Thanks
 
If you draw the button in the designer,
then the button's click event should declare by using the designer.
In the designer, right click the button > Generate> Click
 
Upvote 0
Then you need to create the click sub by your own... Get inspired by the designer how the sub should look like.
 
Upvote 0
Back
Top