图片选择器 Super Image Picker

码农软件 · 软件分类 · Android UI 组件 · 2019-04-23 21:13:14

软件介绍

Super Image Picker是一款功能超强的图片选择器。支持超大图预览(比如 10000*5000 的图),支持图片裁剪,可配置头像模式和普通模式,支持动态配置 ImageLoader 以支持多种图片加载库,以及实现流畅的跳转动画。

如何添加

Gradle

1.在Project的build.gradle 中添加仓库地址

 // JitPack仓库地址
 maven { url "https://jitpack.io" }

示例:

allprojects {
    repositories {
        jcenter()        // JitPack仓库地址
        maven { url "https://jitpack.io" }
    }
}

2.在app目录下的build.gradle中添加依赖

//SImagePicker
compile 'com.github.martin90s:ImagePicker:V1.1'

如何使用

1.首先初始化(推荐在Application的oncreate中调用)

 SImagePicker.init(new PickerConfig.Builder().setAppContext(this)
            .setImageLoader(new FrescoImageLoader())
            .setToolbaseColor(getColor(R.color.colorPrimary))
            .build());

2.在需要选择图片的地方调用

 SImagePicker
            .from(MainActivity.this)
            .maxCount(9)
            .rowCount(3)
            .pickMode(SImagePicker.MODE_IMAGE)
            .fileInterceptor(new SingleFileLimitInterceptor())
            .forResult(REQUEST_CODE_IMAGE);

本文地址:https://codercto.com/soft/d/4241.html

Ordering Disorder

Ordering Disorder

Khoi Vinh / New Riders Press / 2010-12-03 / USD 29.99

The grid has long been an invaluable tool for creating order out of chaos for designers of all kinds—from city planners to architects to typesetters and graphic artists. In recent years, web designers......一起来看看 《Ordering Disorder》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具