Preparations before Android project development (3): android Project Development
Integrate Android into my life!
The first two blogs introduced some major aspects. This blog tells you some small details, which is also important for improving the experience and performance of our apps. Of course, these detailed work, you can do it later!
1: Some Common UIS, operations, and data processing can be placed in BaseActivity, which can be easily managed and reduce the amount of code.
2: before development, consider the use of the local cache mechanism as much as possible and use the cache well, which is of great help to improve the performance of our apps, however, we would like to remind you that if you are not good at using it, it will lead to a lot of problems. Please be careful!
3: the overall framework of the project should be used as far as possible, because the current framework on the market has been summarized by our predecessors and has been improved a lot, which is very convenient and powerful, here, we recommend XUtils, KJLibrary, Volley, SYNC-Http, Afinal, and thinkAndroid, which focuses on Xutils and KJLibrary, because these two frameworks integrate a lot of functions, such as network requests, image processing, and database storage, they are very easy to use!
4: Pay attention to the optimization of APP layout. These are the details of improving APP performance, because it takes time for Davlik to parse XML when loading an application. It is also necessary to optimize the XML layout, will save more time, see the http://blog.csdn.net/ZZ7ZZ7ZZ/article/details/9175141 for details