[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-4054":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":16,"starSnapshotCount":16,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},4054,"Matisse","zhihu\u002FMatisse","zhihu",":fireworks: A well-designed local image and video selector for Android","",null,"Java",12533,2050,235,412,0,3,4,1,44.94,"Apache License 2.0",false,"master",true,[26,27,28,29,30],"android","android-image-picker","android-image-selector","android-library","video-selector","2026-06-12 02:00:58","![Image](\u002Fimage\u002Fbanner.png)\n\n# Matisse\n[![Build Status](https:\u002F\u002Ftravis-ci.org\u002Fzhihu\u002FMatisse.svg)](https:\u002F\u002Ftravis-ci.org\u002Fzhihu\u002FMatisse) [ ![Download](https:\u002F\u002Fapi.bintray.com\u002Fpackages\u002Fzhihu\u002Fmaven\u002Fmatisse\u002Fimages\u002Fdownload.svg) ](https:\u002F\u002Fbintray.com\u002Fzhihu\u002Fmaven\u002Fmatisse\u002F_latestVersion)\n\nMatisse is a well-designed local image and video selector for Android. You can  \n- Use it in Activity or Fragment\n- Select images including JPEG, PNG, GIF and videos including MPEG, MP4 \n- Apply different themes, including two built-in themes and custom themes\n- Different image loaders\n- Define custom filter rules\n- More to find out yourself\n\n| Zhihu Style                    | Dracula Style                     | Preview                          |\n|:------------------------------:|:---------------------------------:|:--------------------------------:|\n|![](image\u002Fscreenshot_zhihu.png) | ![](image\u002Fscreenshot_dracula.png) | ![](image\u002Fscreenshot_preview.png)|\n\n## Download\nGradle:\n\n```groovy\nrepositories {\n    jcenter()\n}\n\ndependencies {\n    implementation 'com.zhihu.android:matisse:$latest_version'\n}\n```\n\nCheck out [Matisse releases](https:\u002F\u002Fgithub.com\u002Fzhihu\u002FMatisse\u002Freleases) to see more unstable versions.\n\n## ProGuard\nIf you use [Glide](https:\u002F\u002Fgithub.com\u002Fbumptech\u002Fglide) as your image engine, add rules as Glide's README says.  \nAnd add extra rule:\n```pro\n-dontwarn com.squareup.picasso.**\n```\n\nIf you use [Picasso](https:\u002F\u002Fgithub.com\u002Fsquare\u002Fpicasso) as your image engine, add rules as Picasso's README says.  \nAnd add extra rule:\n```pro\n-dontwarn com.bumptech.glide.**\n```\n**Attention**: The above progurad rules are correct.\n\n## How do I use Matisse?\n#### Permission\nThe library requires two permissions:\n- `android.permission.READ_EXTERNAL_STORAGE`\n- `android.permission.WRITE_EXTERNAL_STORAGE`\n\nSo if you are targeting Android 6.0+, you need to handle runtime permission request before next step.\n\n#### Simple usage snippet\n------\nStart `MatisseActivity` from current `Activity` or `Fragment`:\n\n```java\nMatisse.from(MainActivity.this)\n        .choose(MimeType.allOf())\n        .countable(true)\n        .maxSelectable(9)\n        .addFilter(new GifSizeFilter(320, 320, 5 * Filter.K * Filter.K))\n        .gridExpectedSize(getResources().getDimensionPixelSize(R.dimen.grid_expected_size))\n        .restrictOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED)\n        .thumbnailScale(0.85f)\n        .imageEngine(new GlideEngine())\n        .showPreview(false) \u002F\u002F Default is `true`\n        .forResult(REQUEST_CODE_CHOOSE);\n```\n \n#### Themes\nThere are two built-in themes you can use to start `MatisseActivity`:\n- `R.style.Matisse_Zhihu` (light mode)\n- `R.style.Matisse_Dracula` (dark mode)  \n\nAnd Also you can define your own theme as you wish.\n\n#### Receive Result\nIn `onActivityResult()` callback of the starting `Activity` or `Fragment`:\n\n```java\nList\u003CUri> mSelected;\n\n@Override\nprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n    super.onActivityResult(requestCode, resultCode, data);\n    if (requestCode == REQUEST_CODE_CHOOSE && resultCode == RESULT_OK) {\n        mSelected = Matisse.obtainResult(data);\n        Log.d(\"Matisse\", \"mSelected: \" + mSelected);\n    }\n}\n```\n\n#### More\nFind more details about Matisse in [wiki](https:\u002F\u002Fgithub.com\u002Fzhihu\u002FMatisse\u002Fwiki).\n\n## Contributing\n[Matisse is an Open Source Project](https:\u002F\u002Fgithub.com\u002Fzhihu\u002FMatisse\u002Fblob\u002Fmaster\u002FCONTRIBUTING.md)\n\n## Thanks\nThis library is inspired by [Laevatein](https:\u002F\u002Fgithub.com\u002Fnohana\u002FLaevatein) and uses some of its source code.\n\n## License\n\n    Copyright 2017 Zhihu Inc.\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n\n","Matisse 是一个为 Android 设计的本地图片和视频选择器。它支持在 Activity 或 Fragment 中使用，能够选取包括 JPEG、PNG、GIF 格式的图片以及 MPEG、MP4 格式的视频。Matisse 提供了两种内置主题（知乎风格和暗黑风格）及自定义主题功能，并且允许开发者根据需求选择不同的图片加载库或设置自定义过滤规则。此外，该库还具备良好的可扩展性，方便用户按照具体的应用场景调整预览样式等参数。适用于需要提供多媒体内容选择功能的各类 Android 应用开发场景。",2,"2026-06-11 02:58:11","top_language"]