图片选择器 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

Build Your Own Web Site the Right Way Using HTML & CSS

Build Your Own Web Site the Right Way Using HTML & CSS

Ian Lloyd / SitePoint / 2006-05-02 / USD 29.95

Build Your Own Website The Right Way Using HTML & CSS teaches web development from scratch, without assuming any previous knowledge of HTML, CSS or web development techniques. This book introduces you......一起来看看 《Build Your Own Web Site the Right Way Using HTML & CSS》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试