Android: imitation QQ photo selector (display by album category, select more ),
The purpose of this example is to implement the photo selection function similar to QQ. After selecting a photo, use a page similar to Sina Weibo to display it.
First:
The main technologies used in this example:
1. Use ContentProvider to read all the image information on the SD card.
2. classify the images obtained from 1 in the parent folder of the image (similar to QQ ).
3. Select the photo page and select the album page to switch between each other without taking onCreate (smooth switching), and set the page switching animation to improve the user experience.
4. Use LruCache when loading SD card images and set the initial compression ratio to reduce memory usage.
5. Use of square layout SquareRelativeLayout (a custom component inherited from RelativeLayout will automatically keep itself as a square ).
There are many codes, so I will not post them here. If you are interested, please download the source code for viewing (no points !) :
Download.csdn.net/detail/books1958/8145321