上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 40 下一页
摘要: onMeasure()函数由包含这个View的具体的ViewGroup调用,因此值也是由其ViewGroup中传入的。子类View的这两个参数widthMeasureSpec, heightMeasureSpec由ViewGroup中的layout_width,layout_height和paddi 阅读全文
posted @ 2018-06-19 15:33 千彧 阅读(655) 评论(0) 推荐(0) 编辑
摘要: 开发环境 Ubuntu 14.04 server nginx-1.8.1 nginx-rtmp-module nginx的服务器的搭建 安装nginx的依赖库 配置并编译nginx 切换到你的nginx 的下载目录,使用nginx的默认配置,添加nginx的rtmp模块。 如果发现 make时有 c 阅读全文
posted @ 2018-06-02 08:26 千彧 阅读(753) 评论(0) 推荐(0) 编辑
摘要: xml属性对应的方法说明 android:alpha setAlpha(float) 设置组件的透明度(0——1) android:background setBackgroundResource(int) 设置背景 android:clickable setClickable(boolean) 设 阅读全文
posted @ 2018-05-31 15:53 千彧 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 1、 android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 具体代码如下: <activity android:name=".myview.videoplayactivity.videoplayer.FullScreenPlayActi 阅读全文
posted @ 2018-05-30 22:10 千彧 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 1、 permission_group 直接取申请 group 不会弹出 申请权限的框 2、 onClieck(): 运行日志: 阅读全文
posted @ 2018-05-23 23:10 千彧 阅读(501) 评论(0) 推荐(0) 编辑
摘要: getMeasuredWidth()获取的是view原始的大小,也就是这个view在XML文件中配置或者是代码中设置的大小。getWidth()获取的是这个view最终显示的大小,这个大小有可能等于原始的大小也有可能不等于原始大小。 在布局文件中写入width 只是给了他一个初始化的默认值,而不是最 阅读全文
posted @ 2018-05-20 10:26 千彧 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 效果图: 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) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 40 下一页