1, today saw the Hon Yang's "Android HD Mega Map load Scheme" article, on the loading of high-definition giant map when the solution has a certain understanding.
The idea is:
- Provides an entry for setting up a picture.
- Rewrite the ontouchevent to update the display area's parameters based on user-moved gestures.
- After each update of the zone parameters, call Invalidate,ondraw inside to regiondecoder.decoderegion get bitmap, to draw.
2, in addition, to the Android gesture event distribution and gesture monitoring to do further study.
2.1. Gesture Event Distribution
See "Android gesture Event distribution Process Analysis"
2.2. Gesture Monitoring
Simple gestures, vew and viewgroup can be overridden by the Ontouchevent method to achieve the logic of gesture monitoring, but for complex gestures, this way does not work, Android provides a class called Gesturedetector to handle complex gesture recognition, monitoring, To achieve more business logic, about Gesturedetector introduction, see "User gesture Detection-gesturedetector use of detailed."
Android HD Mega map loading scheme