上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页

2019年8月21日

ImageLoader

摘要: https://www.jianshu.com/p/08d147000499 阅读全文

posted @ 2019-08-21 10:55 赵子隆 阅读(90) 评论(0) 推荐(0) 编辑

2019年8月13日

圆角布局

摘要: 原文:https://github.com/GcsSloop/rclayout https://www.gcssloop.com/gebug/rclayout 代码: attrs.xml 阅读全文

posted @ 2019-08-13 21:54 赵子隆 阅读(202) 评论(0) 推荐(0) 编辑

View 点击事件传递机制

摘要: 伪代码解释事件传递过程: public boolean dispatchTouchEvent(MotionEvent ev) { boolean consume = false;//事件是否被消费 if (onInterceptTouchEvent(ev)){//调用onInterceptTouch 阅读全文

posted @ 2019-08-13 16:28 赵子隆 阅读(423) 评论(0) 推荐(0) 编辑

2019年8月8日

java 代码 添加控件 修改位置 View

摘要: 添加一个Button,修改其高度、宽度、以及位置。 RelativeLayout设置齐对齐方式 阅读全文

posted @ 2019-08-08 14:23 赵子隆 阅读(791) 评论(0) 推荐(0) 编辑

获取整个Activity的layout

摘要: FrameLayout frameLayout = getWindow().getDecorView().findViewById(android.R.id.content); 阅读全文

posted @ 2019-08-08 14:08 赵子隆 阅读(989) 评论(0) 推荐(0) 编辑

2019年7月22日

线程加锁 同步

摘要: synchronized (this) { } 阅读全文

posted @ 2019-07-22 17:26 赵子隆 阅读(162) 评论(0) 推荐(0) 编辑

应用内悬浮按钮 可吸附 展开有动画 mini播放器

摘要: SystemUtils.java: 布局文件:layout_music_floating_view.xml 是一个头像,加三个按钮: 效果如下: 接着写一个FrameLayout来实现这个按钮,包括动画、吸附等: 接着编写一个类来管理这个按钮: 阅读全文

posted @ 2019-07-22 17:23 赵子隆 阅读(665) 评论(0) 推荐(0) 编辑

2019年7月15日

svg 动画

摘要: 原文:https://www.jianshu.com/p/5c81970ddf33 阅读全文

posted @ 2019-07-15 11:59 赵子隆 阅读(100) 评论(0) 推荐(0) 编辑

2019年7月12日

动画之二:属性动画 Property Animation

摘要: 属性动画,在Android 3.0的(API级别11)引入的,该属性动画系统可以制作动画的任何对象的属性。但是一般来说,属性动画系统是首选的使用方法,因为它更灵活,并提供更多功能。 参考: https://www.jianshu.com/p/489abbc15241 https://blog.csd 阅读全文

posted @ 2019-07-12 10:35 赵子隆 阅读(313) 评论(0) 推荐(0) 编辑

ButterKnife 免去findviewby的麻烦

摘要: https://www.jianshu.com/p/3678aafdabc7 阅读全文

posted @ 2019-07-12 10:19 赵子隆 阅读(144) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页

导航