Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

这个是什么media为啥没有这个能解释一下么 #38

Closed
fangithubgithub opened this issue Mar 9, 2017 · 0 comments
Closed

这个是什么media为啥没有这个能解释一下么 #38

fangithubgithub opened this issue Mar 9, 2017 · 0 comments

Comments

@fangithubgithub
Copy link

private PictureConfig.OnSelectResultCallback resultCallback = new PictureConfig.OnSelectResultCallback() {

@OverRide

public void onSelectSuccess(List< LocalMedia> resultList) {
if (media.isCompressed()){
// 注意:如果压缩过,在上传的时候,取 media.getCompressPath(); // 压缩图compressPath
} else {
// 注意:没有压缩过,在上传的时候,取 media.getPath(); // 原图path
} else{

       // 注意:如果media.getCatPath();不为空的话 就代表裁剪的图片,上传时可取,但是如果又压缩过,则取最终压缩过的compressPath

       }

       selectMedia = resultList;  

      if (selectMedia != null) {

          adapter.setList(selectMedia);

          adapter.notifyDataSetChanged();

      }
  }

};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants