- 授权协议: Apache
- 开发语言: Java
- 操作系统: Android
- 软件首页: https://github.com/pengjianbo/GalleryFinal
- 软件文档: https://github.com/pengjianbo/GalleryFinal
软件介绍
GalleryFinal简介Android相册自定义,包括拍照、图片选择(单选/多选)和裁剪。
为什么要使用GalleryFinal?
拍照/选择图片倒立问题
市场上各种相机和图片浏览器泛滥和各种异常问题
各种手机兼容性问题引起crash
系统Gallery App不能进行多选
拍照/选择图片/裁剪视乎不太好用
系统Gallery App不美观
……
GalleryFinal使用方法
下载GalleryFinal
通过Gradle抓取:
compile 'cn.finalteam:galleryfinal:1.0.1'
截图展示
Demo apk二维码地址:DEMO APK
具体使用
1、通过gradle或jar把GalleryFinal添加到你的项目里
2、你的项目必须实现ImageLoader接口(demo中有Universal-Image-Loader实现方法)
public class GalleryImageLoader implements cn.finalteam.galleryfinal.ImageLoader { @Override public void displayImage(final ImageView imageView, String url) { DisplayImageOptions options = new DisplayImageOptions.Builder()
.cacheInMemory(false)
.cacheOnDisk(false)
.bitmapConfig(Bitmap.Config.RGB_565)
.build(); ImageLoader.getInstance().displayImage(url, imageView, options);
}
}3、打开相册(拍照、选择图片)
单选
GalleryHelper.openGallerySingle(context, crop, new GalleryImageLoader());
第一个参数Context,第二个参数是否裁剪,第三个参数图片加载实现类
多选
GalleryHelper.openGalleryMuti(context, limit, new GalleryImageLoader());
第一个参数Context,第二个参数是选择数量,第三个参数图片加载实现类
4、配置GalleryFinal Activity样式
在styles.xml中添加
<style name="PhotoActivityTheme"> <item name="colorTheme">@color/colorPrimary</item> <item name="colorThemeDark">@color/colorPrimaryDark</item> </style>
colorTheme为主题色,colorThemeDark为主题加深色
5、如果你还想更深度的定制页面效果可以把资源文件名字定义成Gallery资源名已达到覆盖效果。如有不理解可以联系我。
Python标准库
Doug Hellmann / 刘炽 / 机械工业出版社华章公司 / 2012-6-15 / 139.00元
本书由资深Python专家亲自执笔,Python语言的核心开发人员作序推荐,权威性毋庸置疑。 对于程序员而言,标准库与语言本身同样重要,它好比一个百宝箱,能为各种常见的任务提供完美的解决方案,所以本书是所有Python程序员都必备的工具书!本书以案例驱动的方式讲解了标准库中一百多个模块的使用方法(如何工作)和工作原理(为什么要这样工作),比标准库的官方文档更容易理解(一个简单的示例比一份手册......一起来看看 《Python标准库》 这本书的介绍吧!
