All Projects → jenly1314 → Radarview

jenly1314 / Radarview

Licence: other
🍳 RadarView for Android 是一个雷达扫描动画后,然后展示得分效果的控件。

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Radarview

Nova Stripe Theme
A Laravel Nova theme closely resembling Stripe.
Stars: ✭ 71 (-2.74%)
Mutual labels:  laravel
Laravel Ownership
Laravel Ownership simplify management of Eloquent model's owner.
Stars: ✭ 71 (-2.74%)
Mutual labels:  laravel
Laravel Db Normalizer
Normalize all database results to one unified interface, to make swapping repositories a breeze.
Stars: ✭ 72 (-1.37%)
Mutual labels:  laravel
Laravel Optimistic Locking
Adds optimistic locking feature to eloquent models.
Stars: ✭ 71 (-2.74%)
Mutual labels:  laravel
Elasticquent
Maps Laravel Eloquent models to Elasticsearch types
Stars: ✭ 1,172 (+1505.48%)
Mutual labels:  laravel
Laravel Disqus
A simple Disqus platform integration with Laravel.
Stars: ✭ 71 (-2.74%)
Mutual labels:  laravel
Laravel Storage Qiniu
Laravel 5 七牛存储组件(不再维护)
Stars: ✭ 70 (-4.11%)
Mutual labels:  laravel
Candy Hub
The backend system for your GetCandy API
Stars: ✭ 73 (+0%)
Mutual labels:  laravel
Gtrader
a trading strategy trainer, back-tester and bot
Stars: ✭ 71 (-2.74%)
Mutual labels:  laravel
Talks
Apresentações da Laraconf Brasil
Stars: ✭ 72 (-1.37%)
Mutual labels:  laravel
Eloquent Settings
Eloquent Settings allows you to bind key-value pairs to any Laravel Eloquent model. It supports even casting for boolean, float or integer types.
Stars: ✭ 71 (-2.74%)
Mutual labels:  laravel
Keys
🔑 Cryptocurrency private keys
Stars: ✭ 71 (-2.74%)
Mutual labels:  laravel
Laravel Review Rateable
Review & Rating System For Lavavel 5, 6 & 7
Stars: ✭ 72 (-1.37%)
Mutual labels:  laravel
Vmdash
A Cloud (vm) Dashboard that allows you to interact with multiple providers from a single panel
Stars: ✭ 71 (-2.74%)
Mutual labels:  laravel
Fast Excel
🦉 Fast Excel import/export for Laravel
Stars: ✭ 1,183 (+1520.55%)
Mutual labels:  laravel
Openclassify
OpenClassify is modular and most advanced open source classified platform build with Laravel.
Stars: ✭ 69 (-5.48%)
Mutual labels:  laravel
Laravel Micro Manager
Oversee jobs you have put into the queue. Track status, completion % and other job information in real time.
Stars: ✭ 71 (-2.74%)
Mutual labels:  laravel
Laravel Vuetify Spa
Laravel-Vue SPA starter project template with Vuetify frontend.
Stars: ✭ 73 (+0%)
Mutual labels:  laravel
Papermerge
Open Source Document Management System for Digital Archives (Scanned Documents)
Stars: ✭ 1,177 (+1512.33%)
Mutual labels:  scan
Laravel Queue Rabbitmq
RabbitMQ driver for Laravel Queue. Supports Laravel Horizon.
Stars: ✭ 1,175 (+1509.59%)
Mutual labels:  laravel

RadarView

Download Jitpack API License Blog QQGroup

RadarView for Android 是一个雷达扫描动画后,然后展示得分效果的控件。

Gif 展示

Image

引入

Maven:

<dependency>
  <groupId>com.king.view</groupId>
  <artifactId>radarview</artifactId>
  <version>1.0.2</version>
  <type>pom</type>
</dependency>

Gradle:

compile 'com.king.view:radarview:1.0.2'

Lvy:

<dependency org='com.king.view' name='radarview' rev='1.0.2'>
  <artifact name='$AID' ext='pom'></artifact>
</dependency>
如果Gradle出现compile失败的情况,可以在Project的build.gradle里面添加如下:(也可以使用上面的GitPack来complie)
allprojects {
    repositories {
        //...
        maven { url 'https://dl.bintray.com/jenly/maven' }
    }
}

示例

布局

    <com.king.view.radarview.RadarView
        android:id="@+id/rv"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="100"
        app:labelText="Score" />

自定义属性

    <declare-styleable name="RadarView">
        <attr name="android:textSize"/>
        <attr name="android:textColor"/>
        <attr name="android:text"/>
        <attr name="labelTextSize" format="dimension"/>
        <attr name="labelTextColor" format="color"/>
        <attr name="labelText" format="string"/>
        <attr name="format" format="string"/>
        <attr name="sideColor" format="color"/>
        <attr name="outsideBackgroundColor" format="color"/>
        <attr name="insideBackgroundColor" format="color"/>
        <attr name="duration" format="integer"/>
        <attr name="textOffsetY" format="dimension"/>
        <attr name="labelTextOffsetY" format="dimension"/>

        <attr name="circleColor" format="color"/>
        <attr name="lineColor" format="color"/>
        <attr name="showLine" format="boolean"/>
        <attr name="rotate" format="integer"/>
        <attr name="showLabel" format="boolean"/>
        <attr name="showText" format="boolean"/>
        <attr name="scanTime" format="integer"/>
        <attr name="insideStrokeWidth" format="dimension"/>
        <attr name="outsideStrokeWidth" format="dimension"/>
        <attr name="lineStrokeWidth" format="dimension"/>
    </declare-styleable>

代码示例(核心调用代码)

//开始雷达扫描
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);

赞赏

如果您喜欢RadarView,或感觉RadarView帮助到了您,可以点右上角“Star”支持一下,您的支持就是我的动力,谢谢 😃

您也可以扫描下面的二维码,请作者喝杯咖啡 ☕️

关于我

Name: Jenly

Email: jenly1314#gmail.com / jenly1314#vip.qq.com

CSDN: jenly121

Github: jenly1314

加入QQ群: 20867961

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].