Tuesday, February 11, 2014
Drag the screen and the background moves to achieve
android how to implement drag screen and dragging the screen in the background also will make the process of moving effect?
Reply:
Do not sink ah, man
Reply:
Does anyone know what wood?
Reply:
No one really knows. . .
Reply:
Depends on how you want to drag around, up and down, and the change process becomes simpler if it is a direct, gradual changes in the background is more complex,,,
Reply:
"Change the background gradient is more complex," How?
Reply:
Custom Animation AlphaAnimation gradient, but will be cards, so the idea is, you have to know to write a drag event, and then determine the coordinates according event.x and event.y gradient generated animation,,,
Reply:
give you an idea:
You drag over said record the current coordinates, the origin of coordinates corresponding changes,
Coordinate system corresponds to the movement.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment