diff --git a/ChangeLog.md b/ChangeLog.md index 87b2990b..28f6086d 100755 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,3 +1,7 @@ +### v1.3.5 - 2017.01.04 +解决默认主题设置为Material时顶部按钮内边距过宽问题; +demo添加沉浸式状态栏功能; +优化颜色选择器及文件选择器; ### v1.3.4 - 2017.01.01 重构日期时间选择器,默认选中当前日期时间; 支持设置顶部的左右边距; diff --git a/README.md b/README.md index cc7eb115..d95bdba3 100755 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ 安卓选择器类库,包括日期选择器、时间选择器、单项选择器、城市地址选择器、车牌号选择器、数字选择器、星座选择器、生肖选择器、颜色选择器、文件选择器、目录选择器等,可自定义顶部及底部界面,可自定义窗口动画…… 欢迎大伙儿在[Issues](https://github.com/gzu-liyujiang/AndroidPicker/issues)提交你的意见或建议。 欢迎Fork & Pull requests贡献您的代码,大家共同学习【[AndroidPicker交流群 604235437](https://jq.qq.com/?_wv=1027&k=42bKOeD)】。 -[查看更新日志](https://github.com/gzu-liyujiang/AndroidPicker/blob/master/ChangeLog.md),**新版本可能未对旧版API作兼容处理,升级后若编译报错请根据错误提示更改**。 +[查看更新日志](https://github.com/gzu-liyujiang/AndroidPicker/blob/master/ChangeLog.md),新版本可能未对旧版API作兼容处理,升级后若编译报错请根据错误提示更改。 # Install “app”是测试用例;“library”包括WheelPicker、ColorPicker、FilePicker, diff --git a/library/Common/src/main/java/cn/qqtheme/framework/util/AssetsUtils.java b/library/Common/src/main/java/cn/qqtheme/framework/util/AssetsUtils.java deleted file mode 100755 index 864f3226..00000000 --- a/library/Common/src/main/java/cn/qqtheme/framework/util/AssetsUtils.java +++ /dev/null @@ -1,59 +0,0 @@ -package cn.qqtheme.framework.util; - -import android.content.Context; -import android.graphics.Bitmap; -import android.graphics.BitmapFactory; - -import java.io.IOException; -import java.io.InputStream; - -/** - * 操作安装包中的“assets”目录下的文件 - * - * @author 李玉江[QQ:1023694760] - * @since 2013-11-2 - */ -public final class AssetsUtils { - - public static byte[] readByteArray(Context context, String assetPath) { - LogUtils.verbose("read assets file as byte array: " + assetPath); - try { - return ConvertUtils.toByteArray(context.getAssets().open(assetPath)); - } catch (IOException e) { - LogUtils.error(e); - } - return null; - } - - public static String readText(Context context, String assetPath) { - LogUtils.verbose("read assets file as text: " + assetPath); - try { - return ConvertUtils.toString(context.getAssets().open(assetPath)).trim(); - } catch (IOException e) { - LogUtils.error(e); - return ""; - } - } - - /** - * 通过文件名从Assets中获得资源,以位图的形式返回 - * - * @param context the context - * @param assetPath 文件名应为assets文件下载绝对路径 - * @return 以位图的形式返回 bitmap - */ - public static Bitmap readBitmap(Context context, String assetPath) { - LogUtils.verbose("read assets file as bitmap: " + assetPath); - Bitmap bitmap = null; - try { - InputStream is = context.getAssets().open(assetPath); - bitmap = BitmapFactory.decodeStream(is); - bitmap.setDensity(96);// 96 dpi - is.close(); - } catch (IOException e) { - LogUtils.error(e); - } - return bitmap; - } - -} diff --git a/library/Common/src/main/java/cn/qqtheme/framework/util/DateUtils.java b/library/Common/src/main/java/cn/qqtheme/framework/util/DateUtils.java index 6eeab272..8d916b2c 100755 --- a/library/Common/src/main/java/cn/qqtheme/framework/util/DateUtils.java +++ b/library/Common/src/main/java/cn/qqtheme/framework/util/DateUtils.java @@ -1,6 +1,5 @@ package cn.qqtheme.framework.util; -import android.annotation.SuppressLint; import android.support.annotation.IntDef; import android.support.annotation.NonNull;