Skip to content
forked from zhihu/Matisse

🎆 A well-designed local image and video selector for Android

License

Notifications You must be signed in to change notification settings

chaichuanfa/Matisse

 
 

Image

Matisse

Download

Base on Matisse,add crop image function and fix some bug,Used in tongzhuogame

Download

Gradle:

compile 'com.github.chaichuanfa:matisse:1.0.5'

Add Themes

R.style.Matisse_Tongzhuo (custom mode)

And Also you can define your own theme as you wish.

Add single image crop

Matisse.from(SampleActivity.this)
    .choose(MimeType.ofStaticImage())
    .theme(R.style.Matisse_Tongzhuo)
    .countable(false)
    .maxSelectable(1)
    .spanCount(3)
    .thumbnailScale(0.85f)
    .singleMediaPreview(false)
    .singleImageCrop(true)
    .showSingleMediaType(true)
    .imageEngine(new PicassoEngine())
    .forResult(REQUEST_CODE_CHOOSE);

single static image can crop and close preview.

Add open camera right now

Matisse.from(EditProfileFragment.this)
    .choose(MimeType.ofStaticImage())
    .openCameraNow(true)
    .capture(true)
    .captureStrategy(new CaptureStrategy(true,
            "com.tongzhuo.tongzhuogame.fileprovider"))
    .restrictOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT)
    .theme(R.style.Matisse_Tongzhuo)
    .singleImageCrop(true)
    .forResult(OPEN_CAMERA_REQUEST_CODE);

More

Find more details about Matisse in wiki.
Zhuhu README.md

Thanks

About

🎆 A well-designed local image and video selector for Android

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%