Matisse is a well-designed local image and video selector for Android. If you use Glide as your image engine, add rules as Glide's README says. If you use Picasso as your image engine, add rules as Picasso's README says. There are two built-in themes you can use to start MatisseActivity, which are R.style.Matisse_Zhihu (light mode), and R.style.Matisse_Dracula (dark mode). All images and videos will be shown in Matisse by default, you can't limit the selectable mime types. You can launch Matisse from Activity or Fragment. Meanwhile you should receive results in the corresponding onActivityResult() callback. If you want a fixed span count, you can do it. The span count will stay the same when orientation changes. If you expect a grid size which will be flexible fitting different screens, you can also pull that off. This value won't necessarily be applied cause the photo grid should fill the view container.
Features
- Use it in Activity or Fragment
- Select images including JPEG, PNG, GIF and videos including MPEG, MP4
- Apply different themes, including two built-in themes and custom themes
- Different image loaders
- Define custom filter rules
- More to find out yourself