![]() ![]() Using the framework APIs is desireable when you want to add a few graphical enhancements to your application that are not supported with the Canvas APIs, or if you desire platform independence and don't demand high performance. OpenGL Android supports OpenGL ES 1.0 and 2.0, with Android framework APIs as well as natively with the Native Development Kit (NDK). Hardware Acceleration Beginning in Android 3.0, you can hardware accelerate the majority of the drawing done by the Canvas APIs to further increase their performance. In addition, you can do your own custom 2D rendering using the various drawing methods contained in the Canvas class or create Drawable objects for things such as textured buttons or frame-by-frame animations. You can also extend these widgets to modify the way they look or behave. ![]() Canvas and Drawables Android provides a set of View widgets that provide general functionality for a wide array of user interfaces. Here, we'll discuss a few of the options you have for drawing graphics on Android and which tasks they're best suited for. ![]() For example, graphics and animations for a rather static application should be implemented much differently than graphics and animations for an interactive game. Varying graphical tasks are best accomplished with varying techniques. When writing an application, it's important to consider exactly what your graphical demands will be. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |