Skip to content

Commit

Permalink
增加Crop功能
Browse files Browse the repository at this point in the history
  • Loading branch information
HuXiaobai committed Nov 14, 2018
1 parent a73e77c commit 758f818
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Binary file added MediaSelectorCropGif.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ MediaSelector是一个针对于Android媒体库选择的框架,该风格完全
### 运行效果预览【加载视频和图片资源】
![压缩运行效果预览](./MediaSelectorVideoGif.gif)

### 运行效果预览【加载剪切图片资源】
![压缩运行效果预览](./MediaSelectorCropGif.gif)



```java
Expand All @@ -37,7 +40,9 @@ allprojects {
//是否要显示视频文件
mediaOptions.isShowVideo = false;
//设置module主题
mediaOptions.themeColor = "#FF4081";
mediaOptions.themeColor = R.color.colorAccent;
//设置要不要裁剪(视频不裁剪、单图选择接受裁剪,裁剪大小自己可以设置)
mediaOptions.isCrop = true;
//Activity中
MediaSelector.with(MainActivity.this).setMediaOptions(mediaOptions).openMediaActivity();
//Fragment中
Expand Down
1 change: 1 addition & 0 deletions ucrop/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build

0 comments on commit 758f818

Please sign in to comment.