【技术文章博客】火山安卓使用系统相机
一、配置模块右键配置,勾选多媒体功能支持
https://www.lkuaiy.com/image/editor/15996617451165.png
https://www.lkuaiy.com/image/editor/15996617514189.png
二、布局
https://www.lkuaiy.com/image/editor/15996617604188.png
https://www.lkuaiy.com/image/editor/15996617687759.png
三、创建功能
①通知_获得返回数据
启动类项处,点击闪电标记,添加"通知_获得返回数据"
https://www.lkuaiy.com/image/editor/15996617758476.png
https://www.lkuaiy.com/image/editor/15996617851363.png
②系统相机类
https://www.lkuaiy.com/image/editor/15996617937612.png
https://www.lkuaiy.com/image/editor/15996618038910.png
https://www.lkuaiy.com/image/editor/15996618097087.png
③按钮_被单击
https://www.lkuaiy.com/image/editor/15996618173670.png
https://www.lkuaiy.com/image/editor/15996618253480.png
四、演示效果
①拍照
https://www.lkuaiy.com/image/editor/15996618376927.gif
②录像
https://www.lkuaiy.com/image/editor/15996618454607.gif
③浏览并裁剪
https://www.lkuaiy.com/image/editor/15996618524013.gif
https://www.lkuaiy.com/image/editor/15996618609204.gif
例子下载:点击本链接
页:
[1]