在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ImagePreAndSelector开源软件地址:https://gitee.com/water-bodhi/ImagePreAndSelector开源软件介绍:#高仿微信图片选择器
###gradle compile 'com.cocolove2.library:imgselector:x.y.z' ###如何使用 1.创建图片选择器
//protected void setPreView(boolean isPreview);//protected void setBackgroundColor(int colour);//protected void setColunmNum(int colunmNum);//protected void setDirChooseIconRes(int drawableId);//protected void setCheckBoxDrawableRes(int checkboxDrawable);//protected void setTakePhotoRes(int cameraDrawableRes, int textColor, int pressedSelector); 2.创建图片预览界面
3.选择器与预览界面的交互配置
// <intent-filter> <action android:name="包名.action.PRIVIEW"/> <category android:name="android.intent.category.DEFAULT"/> <category android:name="包名.category.PREVIEW"/> </intent-filter>
<intent-filter> <action android:name="包名.action.PRIVIEW"/> <category android:name="android.intent.category.DEFAULT"/> <category android:name="包名.category.PREVIEW.TAKE_PIC"/> </intent-filter> 4.网络图片预览参考NetWorkImgPreActivity |
请发表评论