摘要: private void doWithSurfaceView(){ SurfaceView surfaceView = (SurfaceView)this.findViewById(R.id.surfaceView); surfaceView.getHolder().setFixedSize(176 阅读全文
posted @ 2016-11-03 18:31 cunzai201206 阅读(114) 评论(0) 推荐(0)
摘要: 1.RelativeLayout 相对布局 常用设置:android:layout_width="match_parent" android:layout_height="match_parent" 控件相对位置 在某个控件左边:android:layout_toLeftOf="@id/camera 阅读全文
posted @ 2016-11-03 16:35 cunzai201206 阅读(103) 评论(0) 推荐(0)
摘要: 设置View隐藏: 阅读全文
posted @ 2016-11-03 16:03 cunzai201206 阅读(872) 评论(0) 推荐(0)
摘要: 重写触摸事件 阅读全文
posted @ 2016-11-03 15:48 cunzai201206 阅读(122) 评论(0) 推荐(0)
摘要: 全屏:没有标题栏,没有状态栏 1.主题方式 2.编码方式 去除标题 requestWindowFeature(Window.FEATURE_NO_TITLE); 注意事项: requestFeature() must be called before adding content; AppCompa 阅读全文
posted @ 2016-11-03 11:16 cunzai201206 阅读(227) 评论(0) 推荐(0)