转载请说明出处!
作者:kqw攻城狮
出处:个人站 | CSDN
Android 雷达扫描控件
To get a Git project into your build:
Step 1. Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:
|
|
Step 2. Add the dependency
|
|
效果图
XML
|
|
初始化
|
|
设置属性
XML
|
|
|
|
| 属性 | 类型 | 描述 |
|---|---|---|
| radarScanTime | integer | 设置雷达扫描一圈时间 |
| radarBackgroundLinesNumber | integer | 设置雷达背景圆圈数量 |
| radarBackgroundLinesWidth | float | 设置雷达背景圆圈宽度 |
| radarBackgroundLinesColor | color | 设置雷达背景圆圈颜色 |
| radarBackgroundColor | color | 设置雷达背景颜色 |
| radarScanColor | color | 设置雷达扫描颜色 |
| radarScanAlpha | integer | 设置雷达扫描透明度 |
Java
|
|
备用
手动开始扫描
|
|
手动停止扫描
|
|