BUTTON set CLICK LISTENER, get the association, if the overlap occurs when two BUTTON on the layout, how to determine which clicks BUTTON?
If you are in the game, such as a picture wizard (Sprite) overlap, how to determine which is clicked? How to achieve it? If the same level?
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
button has id ah, according to the id to determine which
click
switch (view.getId ()) {
case R.id.button1:
break;
case R.id.button1:
break; Reply:
Correction, the second is
case R.id.button2:
break;
Reply:
This I know. I just want to know how this is achieved. Because the game engine among these methods are implemented their own
Reply:
No one knows how such a mechanism is to achieve it?
No comments:
Post a Comment