Add a ready-made photo and video picker to an Android app so users can select media from their phone gallery.
Apply custom filter rules to restrict which file types or sizes users can pick.
Apply a Dracula dark theme or a custom theme so the media picker matches the rest of the app.
Requires an Android project with Glide or Picasso already configured as the image loader.
Matisse is an Android library that adds a polished media picker screen to mobile apps. When an app needs to let users choose images or videos stored on their phone, the developer would normally have to build that selector interface from scratch. Matisse provides a pre-built, well-styled version that can be dropped in with a few lines of code. The picker works inside both Activity and Fragment, the two primary building blocks of Android app screens. It supports selecting JPEG, PNG, and GIF image files alongside MPEG and MP4 video files. Developers can control how many items a user may select at once, adjust the size of thumbnail previews in the grid, lock screen orientation, and write custom filter rules to exclude certain file types or sizes from appearing in the picker at all. Two visual themes ship out of the box: a light style called Zhihu and a dark style called Dracula. Developers can also define their own custom themes so the picker blends with the rest of an app. The library also supports two image-loading tools commonly used in Android development, Glide and Picasso, and the developer picks which one to use with a small configuration call. Once a user makes their selections and confirms, the result comes back as a list of file references. The calling app can then use those references to upload files, display them, or process them however it needs. Matisse was built and open-sourced by Zhihu, a large Chinese question-and-answer platform. It carries an Apache 2.0 license.
← zhihu on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.