记录-图片预览多选
This commit is contained in:
@@ -91,9 +91,9 @@ class PopBottomPic(
|
||||
.setCompressEngine(ImageFileCompressEngine())
|
||||
.isPreviewImage(true)
|
||||
.isMaxSelectEnabledMask(true)
|
||||
.setMaxSelectNum(1)
|
||||
.setMaxSelectNum(6)
|
||||
.isGif(false)
|
||||
.setSelectionMode(SelectModeConfig.SINGLE)
|
||||
// .setSelectionMode(SelectModeConfig.SINGLE)
|
||||
.setSelectedData(myAdapter.data)
|
||||
selectionModel.forResult(object : OnResultCallbackListener<LocalMedia> {
|
||||
override fun onResult(result: ArrayList<LocalMedia>) {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.dahe.mylibrary.utils
|
||||
|
||||
import android.content.Context
|
||||
import android.widget.ImageView
|
||||
import com.dahe.mylibrary.adapter.GridImageAdapter
|
||||
import com.dahe.mylibrary.base.SingletonNoPHolder
|
||||
import com.dahe.mylibrary.callback.OnPicResultListener
|
||||
@@ -47,4 +48,12 @@ class PopsUtils private constructor(){
|
||||
.asCustom(PopNorBottomPic(ctx, listenter))
|
||||
.show()
|
||||
}
|
||||
|
||||
|
||||
|
||||
fun showBigPic(ctx: Context,srcImageView: ImageView){
|
||||
// XPopup.Builder(ctx)
|
||||
// .isDestroyOnDismiss(true)
|
||||
// .asImageViewer(srcImageView,0,,)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user