Android代码-安卓虚拟摇杆

上传者: 39841365 | 上传时间: 2021-07-14 14:24:58 | 文件大小: 458KB | 文件类型: ZIP
Rocker 一个安卓虚拟摇杆程序,可作为游戏控制器或者小车遥控器。 作者微博: @GcsSloop 摘要 由于需要制作一个控制小车移动的应用,使用按键控制不太舒服,故制作了一个虚拟摇杆。 之前的摇杆程序只是满足了基本功能,还有很多不方便以及不合理的地方,本次对其进行了重构,使其结构更佳合理,也完善了之前不足的部分。 目前已完成内容: 程序结构更佳合理 视图大小自适应 支持界面预览 支持在界面文件中直接配置参数 增加定时发送状态数据 基于 hello-earth 小伙伴的建议,分离了界面刷新周期和数据回调周期。 使用示例 默认参数 自定义参数 可自定义参数包括: 参数类型 中文 数据类型 默认值 简介 area_radius 区域半径 dimension 75dp 摇杆可活动区域的半径 rocker_radius 摇杆半径 dimension 25dp 摇杆本身半径 area_background 区域背景 color, reference CYAN 区域背景 rocker_background 摇杆背景 color, reference

文件下载

资源详情

[{"title":"( 35 个子文件 458KB ) Android代码-安卓虚拟摇杆","children":[{"title":"Rocker-master","children":[{"title":"gradlew.bat <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"gradlew <span style='color:#111;'> 4.85KB </span>","children":null,"spread":false},{"title":"gradle.properties <span style='color:#111;'> 855B </span>","children":null,"spread":false},{"title":"library","children":[{"title":"proguard-rules.pro <span style='color:#111;'> 666B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main","children":[{"title":"res","children":[{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 70B </span>","children":null,"spread":false},{"title":"attrs.xml <span style='color:#111;'> 482B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"gcssloop","children":[{"title":"widget","children":[{"title":"RockerView.java <span style='color:#111;'> 15.73KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 288B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 625B </span>","children":null,"spread":false}],"spread":true},{"title":"Sample","children":[{"title":"proguard-rules.pro <span style='color:#111;'> 666B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main","children":[{"title":"res","children":[{"title":"mipmap-xxxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 10.24KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable","children":[{"title":"area_bg.png <span style='color:#111;'> 346.49KB </span>","children":null,"spread":false},{"title":"rocker_bg.png <span style='color:#111;'> 7.79KB </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"colors.xml <span style='color:#111;'> 208B </span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'> 69B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 381B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 211B </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.54KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 818B </span>","children":null,"spread":false}],"spread":false},{"title":"values-w820dp","children":[{"title":"dimens.xml <span style='color:#111;'> 358B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"gcssloop","children":[{"title":"rockertest","children":[{"title":"MainActivity.java <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 690B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 652B </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.jar <span style='color:#111;'> 52.38KB </span>","children":null,"spread":false},{"title":"gradle-wrapper.properties <span style='color:#111;'> 231B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 598B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 5.47KB </span>","children":null,"spread":false},{"title":"settings.gradle <span style='color:#111;'> 30B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 541B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • wanglulu314409 :
    根本不能用!!!
    2020-04-01

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明