2019年8月28日

Android单行跑马灯效果实现

摘要: 参考网址:https://www.jianshu.com/p/e6c1b825d322 起初,使用了如下XML布局: 结果是:能暂时实现跑马灯效果,但在多次点击事件之后容易失焦。而且在Android4.4上实现有短暂停顿。 focusable和focusableInTouchMode的区别:http 阅读全文

posted @ 2019-08-28 09:48 ken9527just 阅读(6315) 评论(0) 推荐(0) 编辑

2019年8月27日

Android读取date中年月日

摘要: 1、Date对象:Date date = getDate(); 2、Calendar实例:Calendar calendar = Calendar.getInstance(); 3、calendar.setTime(date); 4、int year = calendar.get(Calendar. 阅读全文

posted @ 2019-08-27 17:12 ken9527just 阅读(4200) 评论(0) 推荐(0) 编辑

Gson的解析Json数据的两种方式

摘要: 转载:https://blog.csdn.net/huplion/article/details/78984977 在线JSON字符串转Java实体类(JavaBean、Entity): https://www.bejson.com/json2javapojo/new/ 阅读全文

posted @ 2019-08-27 10:43 ken9527just 阅读(252) 评论(0) 推荐(0) 编辑

2019年8月24日

java回调函数

摘要: 转载:https://blog.csdn.net/a_running_wolf/article/details/49359923/ 阅读全文

posted @ 2019-08-24 10:24 ken9527just 阅读(108) 评论(0) 推荐(0) 编辑

2019年8月22日

一文读懂HashMap

摘要: 推荐 转载:https://www.jianshu.com/p/ee0de4c99f87 阅读全文

posted @ 2019-08-22 12:01 ken9527just 阅读(144) 评论(0) 推荐(0) 编辑

2019年8月17日

EventBus

摘要: 转载:https://blog.csdn.net/zzb_bin/article/details/80229456 https://www.jianshu.com/p/f9ae5691e1bb 注册事件 注销事件 发送事件(此处是在设置界面关闭时(onDestroy中)发送事件) 定义类TimeEv 阅读全文

posted @ 2019-08-17 11:25 ken9527just 阅读(142) 评论(0) 推荐(0) 编辑

2019年8月15日

Android获取拓展外置SD卡(可插拔)路径及读写外置SD卡的方法

摘要: 转载:https://blog.csdn.net/xingnan4414/article/details/79388972 阅读全文

posted @ 2019-08-15 09:58 ken9527just 阅读(361) 评论(0) 推荐(0) 编辑

2019年8月13日

ScrollView中页面显示自动滑到最后问题的解决

摘要: 转载:https://blog.csdn.net/a644904088/article/details/80241176 原因:ScrollView中包含其余控件,但控件显示不全,此时会存在焦点问题,使得布局显示回到最后。 解决方法:在ScrollView包含的整个<LinearLayout>中添加 阅读全文

posted @ 2019-08-13 18:14 ken9527just 阅读(398) 评论(0) 推荐(0) 编辑

2019年8月8日

Android定时锁屏功能实现(AlarmManager定时部分)

摘要: AlarmManager 阅读全文

posted @ 2019-08-08 20:18 ken9527just 阅读(269) 评论(0) 推荐(2) 编辑

导航