摘要: 效果图: 1、菜单栏类 2、布局文件 3、 activity 4、 还可以编写 横竖的菜单栏 ,效果如下: 代码如下: 其中用到 沿Y轴为轴旋转的动画,代码如下: 阅读全文
posted @ 2018-05-19 23:43 千彧 阅读(710) 评论(0) 推荐(0) 编辑
摘要: 1、移动补间动画:TranslateAnimation Animation animation = new TranslateAnimation(0,50,0,50); 参数1:x轴的起始位置 参数2:x轴的终止位置 参数3:y轴的起始位置 参数4:y轴的终止位置 相对于原图位置的原点(图片的右上角 阅读全文
posted @ 2018-05-19 20:47 千彧 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * 3 * px dip 转换 4 */ 5 public class DensityUtil { 6 7 /** 8 * 根据手机分辨率 dip 转 px 9 */ 10 static public int dip2px(Context context,float dpValue){ 11 ... 阅读全文
posted @ 2018-05-19 16:24 千彧 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 效果图: 1、 添加依赖 2、编写布局 DanmakuView 覆盖在 VideoView 3、 编写相关逻辑 阅读全文
posted @ 2018-05-19 12:20 千彧 阅读(436) 评论(0) 推荐(0) 编辑