Android HD Mega map loading scheme

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.