NineGridView is an Android widget for presenting photo collections in layouts similar to WeChat Moments, QQ Zone, and Weibo. It automatically adjusts image and container sizes according to how many pictures are displayed. A single image can use its own dimensions and aspect ratio instead of being forced into a uniform grid. The widget uses an adapter model so applications can supply their own image data and rendering behavior. Image loading is abstracted through an interface compatible with libraries such as Glide, Picasso, Fresco, and ImageLoader. Built-in PhotoView integration enables full-screen image previews with transition animation. Grid and fill modes are supported, and when the number of images exceeds the configured limit, the final tile can display the remaining count.
Features
- Automatic nine-grid image layouts
- Adaptive single-image sizing
- Adapter-based image configuration
- Pluggable image loading frameworks
- Full-screen PhotoView previews
- Grid, fill, and overflow-count display modes