开发者

how to get event of click of button in canvas -- Android?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜