Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jenly1314/radarview
🍳 RadarView for Android 是一个雷达扫描动画后,然后展示得分效果的控件。
https://github.com/jenly1314/radarview
anim animation laravel radar radarview scan score
Last synced: 1 day ago
JSON representation
🍳 RadarView for Android 是一个雷达扫描动画后,然后展示得分效果的控件。
- Host: GitHub
- URL: https://github.com/jenly1314/radarview
- Owner: jenly1314
- License: other
- Created: 2017-08-03T07:20:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-01-27T08:37:06.000Z (10 months ago)
- Last Synced: 2024-01-27T09:27:29.659Z (10 months ago)
- Topics: anim, animation, laravel, radar, radarview, scan, score
- Language: Java
- Homepage:
- Size: 5.02 MB
- Stars: 83
- Watchers: 5
- Forks: 24
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# RadarView
[![Download](https://img.shields.io/badge/download-App-blue.svg)](https://raw.githubusercontent.com/jenly1314/RadarView/master/app/app-release.apk)
[![Jitpack](https://jitpack.io/v/jenly1314/RadarView.svg)](https://jitpack.io/#jenly1314/RadarView)
[![API](https://img.shields.io/badge/API-15%2B-blue.svg?style=flat)](https://android-arsenal.com/api?level=15)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/mit-license.php)RadarView for Android 是一个雷达扫描动画后,然后展示得分效果的控件。
## Gif 展示
![Image](GIF.gif)> 你也可以直接下载 [演示App](https://raw.githubusercontent.com/jenly1314/RadarView/master/app/app-release.apk) 体验效果
## 引入
### Gradle:
1. 在Project的 **build.gradle** 或 **setting.gradle** 中添加远程仓库
```gradle
repositories {
//...
mavenCentral()
maven { url 'https://jitpack.io' }
}
```2. 在Module的 **build.gradle** 里面添加引入依赖项
```gradle
implementation 'com.github.jenly1314:RadarView:1.0.2'
```## 使用
布局示例
```Xml
```自定义属性
```Xml
```代码示例(核心调用代码)
```Java
//开始雷达扫描
radarView.start();
//停止雷达扫描
radarView.stop();
//设置雷达扫描区域的颜色,传多个色值表示渐变
radarView.setScanColor(int... colors);
/**
* 显示分数
* @param from 初始值
* @param to 目标值(最终分数)
* @param duration 从初始值到目标值的动画持续时间
* @param format
* @param isShowAnim 是否显示动画
*/
radarView.showScore(float from, float to, int duration, final String format,boolean isShowAnim);```
更多使用详情,请查看[app](app)中的源码使用示例或直接查看[API帮助文档](https://jitpack.io/com/github/jenly1314/RadarView/latest/javadoc/)
## 赞赏
如果您喜欢RadarView,或感觉RadarView帮助到了您,可以点右上角“Star”支持一下,您的支持就是我的动力,谢谢 :smiley:您也可以扫描下面的二维码,请作者喝杯咖啡 :coffee:
## 关于我
| 我的博客 | GitHub | Gitee | CSDN | 博客园 |
|:------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------|
| Jenly's Blog | jenly1314 | jenly1314 | jenly121 | jenly |## 联系我
| 微信公众号 | Gmail邮箱 | QQ邮箱 | QQ群 | QQ群 |
|:-------------|:---------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------|
| [Jenly666](http://weixin.qq.com/r/wzpWTuPEQL4-ract92-R) | jenly1314 | jenly1314 | 20867961 | 64020761 |