With the previous introduction to the Android platform, you can basically start to write Android apps, and here's an example of a two-dimensional graphic that will introduce the general approach to Android development, which involves customizing the application class, extending the View,intent definition, Send messages, Data Binding (Adapter), and basic UI design. The example does not use the Android platform's own two-dimensional graphics API, but instead calls the Guide Bee two-dimensional graphics library, the Guide Bee two-dimensional graphics library graphics 2D API implements the graphics engine on the mobile platform, it can handle all kinds of basic graphics (shape) in a unified way, path Text (texts), appropriate fonts and images. The base class definition is similar to the Windows GDI + library.
All examples and Silverlight two-dimensional graphics library similar to the Silverlight guide bee two-dimensional graphics library download:
http://www.imobilebbs.com/wordpress/?p=800
Examples will provide the source code, containing the guide bee two-dimensional graphics library (free use).
Two-dimensional graphics are divided into functions as shown in the following table:
Function |
Example |
Color |
Colors |
Brush |
Pattern, gradients |
Pen |
Lines, dashes, linecap,linejoin |
Path |
Polys, Paths |
Shape |
Oval, Pear, Shape2ddemo |
Image |
Drawmap, Jumbleimage, Seethroughimage |
Font |
Fontdemo, Fonttypes |
Transform |
Transform |
Dynamic Shape |
Bézier |
Each function is designed as an activity, included in the androidgraphics2dapplication.
See a full set of tutorials: http://www.bianceng.cn/OS/extra/201301/35252.htm