摘要: 不确定进度条 阅读全文
posted @ 2016-11-14 13:15 cunzai201206 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 文件打开方式:采用rws,rwd方式,立即写入,不进行缓存 RandomAccessFile file = new RandomAccessFile(file ,"rwd"); file.setLength(size); file.close(); file.seek("start");//指定写入 阅读全文
posted @ 2016-11-14 11:32 cunzai201206 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 资源 图片 - drawable 阅读全文
posted @ 2016-11-14 10:20 cunzai201206 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 相机 相机打开 camera = Camera.open(); 获取相机参数 Camera.Parameters params = camera.getParameters(); 常用设置: 预览界面:preview-size-values=800,480支持范围内 每秒捕获次数:preview-f 阅读全文
posted @ 2016-11-04 11:03 cunzai201206 阅读(105) 评论(0) 推荐(0) 编辑
摘要: private void doWithSurfaceView(){ SurfaceView surfaceView = (SurfaceView)this.findViewById(R.id.surfaceView); surfaceView.getHolder().setFixedSize(176 阅读全文
posted @ 2016-11-03 18:31 cunzai201206 阅读(104) 评论(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 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 设置View隐藏: 阅读全文
posted @ 2016-11-03 16:03 cunzai201206 阅读(857) 评论(0) 推荐(0) 编辑
摘要: 重写触摸事件 阅读全文
posted @ 2016-11-03 15:48 cunzai201206 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 全屏:没有标题栏,没有状态栏 1.主题方式 2.编码方式 去除标题 requestWindowFeature(Window.FEATURE_NO_TITLE); 注意事项: requestFeature() must be called before adding content; AppCompa 阅读全文
posted @ 2016-11-03 11:16 cunzai201206 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 列编辑 edit - column selections mode 阅读全文
posted @ 2016-11-02 15:12 cunzai201206 阅读(103) 评论(0) 推荐(0) 编辑