上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 204 下一页
摘要: 使用录音机录制音频 权限: <!-- 相机 --> <uses-permission android:name="android.permission.CAMERA" /> <!-- 录音 --> <uses-permission android:name="android.permission.R 阅读全文
posted @ 2022-10-03 23:32 小白龙白龙马 阅读(251) 评论(0) 推荐(0)
摘要: 图像解码器ImageDecoder 早期的Android只支持三种图像格式:JPEG、PNG和GIF,而且图像视图仅能显示动图的初始画面,无法直接播放动画效果。 时代呼唤技术更先进的图像压缩算法,谷歌推出了WebP格式,苹果推出了HEIF格式。WebP与HEIF都具备了下列特性: (1)支持透明背景 阅读全文
posted @ 2022-10-03 22:59 小白龙白龙马 阅读(465) 评论(0) 推荐(0)
摘要: 当图像视图的缩放类型为fitCenter时,如果图片的尺寸超过4096*4096,App运行会崩溃。 若想解决加载超大图片的问题,有下列几种方案: (1)在显示图片之前调用setLayerType方法,将图层类型设置为软件加速,此时系统会对该视图关闭硬件加速。 (2)把图像视图的缩放类型改为cent 阅读全文
posted @ 2022-10-03 11:13 小白龙白龙马 阅读(162) 评论(0) 推荐(0)
摘要: 系统相册既支持只选择一张图片,也支持同时选择多张图片。 跳到系统相册的代码例子如下: // 创建一个内容获取动作的意图(准备跳到系统相册) Intent albumIntent = new Intent(Intent.ACTION_GET_CONTENT); albumIntent.putExtra 阅读全文
posted @ 2022-10-03 10:40 小白龙白龙马 阅读(473) 评论(0) 推荐(0)
摘要: 手机拍照的编码实现主要有两种:(1)通过Camera工具联合表面视图SurfaceView,由开发者实现拍照细节;(2)借助系统相机自动拍照,也就是跳到系统相机页面,由系统相机拍摄照片; Intent photoIntent = new Intent(MediaStore.ACTION_IMAGE_ 阅读全文
posted @ 2022-10-03 10:11 小白龙白龙马 阅读(129) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-09-25 15:46 小白龙白龙马 阅读(21) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-09-25 00:32 小白龙白龙马 阅读(28) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-09-24 14:56 小白龙白龙马 阅读(47) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-09-18 15:52 小白龙白龙马 阅读(22) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-09-18 12:30 小白龙白龙马 阅读(34) 评论(0) 推荐(0)
上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 204 下一页