How To Move Multiple Views In Android?
i'm having some problems with views. I created my own View (Square) and i want to move any Squares that i put on the screen. With the menu, i can put other Squares on the screen. T
Solution 1:
First thing, make the creation of a new square be a method in SquareBuilder:
private Square newSquare() { ...
Then replace the duplicate code for creating a square with calls to this new method. This will make your problem easier to solve because you will only have one copy of that code.
Then maybe add some logging inside each case statement to see what events are really firing where.
This may help too: Multiple Views OnTouch Events You need to return false from your event when the touch event was not on the square so that the event can be propagated to other listeners. Returning true consumes the event.
Post a Comment for "How To Move Multiple Views In Android?"