takephoto图片选择器
来源:互联网 发布:淘宝卖家开花呗条件 编辑:程序博客网 时间:2024/06/05 22:30
一个图片选择器 功能比较齐全的第三方 包括了 剪裁 压缩 多选 拍照旋转 权限问题也不用考虑 感觉比较方便 只要修改成需要的页面 把配置设置好就可以了
github地址 https://github.com/crazycodeboy/TakePhoto
demo里面用的地址依赖 GitHub上有项目依赖
依赖的库 compile 'com.jph.takephoto:takephoto_library:4.0.3'
发现了个bug 如果压缩设置为false得时候 图片剪裁后获取不到 还有确定 这个字体颜色 正常应该是白的 但是这里有bug 标题栏颜色可以自定义
方法
布局中加个 toolbar
<?xml version="1.0" encoding="utf-8"?><android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="50dp" android:background="#65a6ff" app:theme="@style/CustomToolbarTheme" />
background 的颜色就是第一个toolbar的颜色
状态栏 颜色设置 在color文件里加入
<color name="multiple_image_select_primaryDark">#212121</color>
第二个页面的标题栏颜色
<color name="multiple_image_select_primary">#65a6ff</color><color name="multiple_image_select_accent">#65a6ff</color>
如果你的项目中启用了代码混淆,可在混淆规则文件(如:proguard-rules.pro)中添加如下代码:
-keep class com.jph.takephoto.** { *; }-dontwarn com.jph.takephoto.**-keep class com.darsh.multipleimageselect.** { *; }-dontwarn com.darsh.multipleimageselect.**-keep class com.soundcloud.android.crop.** { *; }-dontwarn com.soundcloud.android.crop.**
效果图
demo 地址 http://download.csdn.net/detail/qq_34709056/9912806
阅读全文
0 0
- takephoto图片选择器
- TakePhoto 图片选择器 简单使用
- Android图片加载-TakePhoto
- takephoto
- 图片选择器
- 图片选择器
- 图片选择器
- 图片选择器
- 图片选择器
- 图片选择器
- 图片选择器
- 图片选择器
- 图片选择器
- 图片选择器
- 图片选择器
- 图片选择器
- TakePhoto 简介
- android TakePhoto
- createElement和createDocumentFragment区别
- Android 7.0adb无法连接问题
- ConcurrentHashMap源码解析——JDK1.7
- POJ3461[Oulipo]KMP裸题
- oss endpoint
- takephoto图片选择器
- swing入门Helloword
- hpuoj 【1144】n的合成 【数学】&&【思维】
- TypeError:__init__() got an unexpected keyword argument 'xxx'
- 数据结构--串
- 输入两个链表,找出它们的第一个公共结点。
- bootstrap日历控件
- acm Subsequence 3061
- Gradle从入门到实战