Android system is a research hotspot in recent years, so a beautiful UI become more important. Matrix-based can make android UI development more easily and quickly, and the software also run faster than developed by openGL_ES. In the paper, We first briefly introduce two-dimensional graphics geometric transformation, then combined android. graphics. Matrix to introduce it in detail. Finally, we introduce the use of android. graphics. camera to achieve 3D effect, and also give some codes and 3D screenshots of program.