Measurespec&opengl&sqlite--tips

Source: Internet
Author: User
Tags sqlite database

measurespec.exactly
Container view caller has specified the exact size of the child's view
Measurespec.at_most
The container view caller sets the maximum value and the child view can request less space
Measurespec.unspecified
The container view has no limit to the child view, the child view can request size arbitrarily

Part call Setmeasuredimensions Sets the height and width properties. The parent node can then call methods Getmeasuredheight and Getmeasuredwidth to get these properties.

Surfacecreated is responsible for pre-preparation, which sets up some OpenGL properties that need to be initialized when the widget draws a new plane, this method calls the Initimage method, which reads the bitmap resource, stores it as a two-dimensional structure, and finally calls the Drawframe method. The preparation of the drawing is basically done. The previously saved two-dimensional structure is applied to the plane, her nodes are set by the vertexbuf of the constructor, the stage of the animation is selected, and the scene is redrawn.
Views are embedded in aty and are life-cycle if you are using OpenGL and when Aty is not visible, remember to end the long-running animation process.

Android uses the SQLite database engine, which is a self-contained, transactional database engine that does not require a separate service process. Many database systems use static types, but SQLite does not save database type information. He pushed the job of saving type information to high-level languages like Java, where he mapped the database structure to a high-level type. SQLite database is not easy to crash.

Measurespec&opengl&sqlite--tips

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.