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

图片和视频默认是顺序的,请问在UISDK集成如何修改为倒叙? #27

Open
jianguo888 opened this issue May 26, 2022 · 0 comments

Comments

@jianguo888
Copy link

jianguo888 commented May 26, 2022

图片和视频默认是顺序的,请问在UISDK集成如何修改为倒序?,让最近拍摄的图片在最前面,这是贵司的获取相册图片的方法

`
/**
* 功能:加载本地所有图片


* 包含:


* 1、已授权读取手机SD卡权限,则通过{@link PickerManagerKit#getAllPictrue()} 读取本地相册扫描出的所有图片
* 2、未授权读取手机SD卡权限,在Android6.0需要动态获取权限
*/
private void loadPictureList() {
mActivity = (Activity) getContext();
if (ContextCompat.checkSelfPermission(mActivity, Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED) {
mHandlder.post(new Runnable() {
@OverRide
public void run() {
ArrayList list = PickerManagerKit.getInstance(mActivity).getAllPictrue();

                getPickerListLayout().updateItems(list);
            }
        });
    } else {
        if (Build.VERSION.SDK_INT >= 23) {
            ActivityCompat.requestPermissions(mActivity, new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, 1);
        }
    }
}

`

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

1 participant