Anyone please tell me how to get event of click of button , button in canvas -开发者_如何学运维-- Android ?
I think you can use onclickListener according to what i understood from your question.
Eg; Button button = (Button)findViewById(your button id);
button.setOnClickListener(this);
implement onClickListener.
Add the methods,then do the codings for what you want to do.
To capture the event of when a user clicks a button, you need to call setOnItemClickListener
for that button, and define the onClickListener
usually within that method.
精彩评论