Quick build of an Android program

Nowadays, the various libraries of android are very rich, and many things can be used.

An application-type app probably loads data from the Internet or locally to the page, and submits very little data.

1. Selection

   Since google has released the official databinding component, it should be a trend to use the MVVM pattern to develop.

 

2. Various peripheral libraries

   2.1 Network

         Pattern using retrofit 2.0 + OKHttp + Gson

 

   2.2 Processing flow

         Using rxjava, rxandroid has a clearer processing flow and more convenient thread switching, which is suitable for scenarios where processing is temporarily placed on another thread.

         In addition, it can also be used in conjunction with the above retrofit2

 

   2.3 Image download

         Glide, Picasso can be used, support three-stage acquisition of memory, hard disk, and network

 

   2.4 QR code identification

         zxing is the best in every way

 

   2.5 If the item has an icon

         MPAndroidChart various chart display

 

   2.6 If you watch the pictures in various poses

         PhotoView

 

   2.7 If there is data interaction with the local

         realm is good, relatively lightweight. If you use sqllite, you can use greenDao

 

   2.8 Want to be a guide page

         AppIntro

 

   2.9 Third-party login

         Honestly and practically their official sdk

   

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326995797&siteId=291194637