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