• Stars
    star
    117
  • Rank 301,828 (Top 6 %)
  • Language
    Java
  • Created about 8 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This is a circle on the proliferation of Android custom view.

DiffuseView

This is a circle on the proliferation of Android custom view.(这是Android平台上一个自定义的圆形扩散View。)

实现效果

使用

XML中:

<com.airsaid.diffuseview.widget.DiffuseView
        android:id="@+id/diffuseView"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        app:diffuse_color="@color/colorAccent"
        app:diffuse_coreColor="@color/colorPrimaryDark"
        app:diffuse_coreImage="@android:drawable/ic_menu_search"
        app:diffuse_coreRadius="100"
        app:diffuse_maxWidth="300"
        app:diffuse_speed="5"
        app:diffuse_width="4"/>

代码中:

DiffuseView mDiffuseView = (DiffuseView) findViewById(R.id.diffuseView);
mDiffuseView.start(); // 开始扩散
mDiffuseView.stop();// 停止扩散

属性&方法

属性名 java方法 作用
diffuse_color setColor(int colorId) 设置扩散圆颜色
diffuse_coreColor setCoreColor(int colorId) 设置中心圆颜色
diffuse_coreImage setCoreImage(int imageId) 设置中心圆图片
diffuse_coreRadius setCoreRadius(int radius) 设置中心圆半径
diffuse_maxWidth setMaxWidth(int maxWidth) 设置最大扩散宽度
diffuse_width setDiffuseWidth(int width) 设置扩散圆宽度,值越小越宽
diffuse_speed setDiffuseSpeed(int speed) 设置扩散速度

联系我

我的博客

感谢

http://www.kancloud.cn/digest/liuguilin/120373

More Repositories

1

AndroidLocalizePlugin

🌏 Android localization plugin. supports multiple languages and multiple translators.
Java
507
star
2

AccountBook

[停止维护] 一个数据存储使用的 Leancloud、架构采用 MVP 的记账本 APP。
Java
392
star
3

CalendarView

Android 平台上继承 View 实现的自定义日历控件
Java
134
star
4

Android-PickerView-Library

Simple PickerView for Android - code from https://github.com/saiwu-bigkoo/Android-PickerView
Java
112
star
5

MPermissionUtils

Android6.0 运行时权限处理工具类
Java
85
star
6

InputCodeLayout

这是一个 Android 上输入验证码的自定义布局
Java
83
star
7

sample-gradle-plugin

🚀 A powerful Gradle Plugin to help you demonstrate your android app.
Java
19
star
8

StateLayout

🌀 A customize multiple state layout for Android.
Kotlin
12
star
9

ChordView

🎸 Android custom view for rendering guitar chord.
Java
11
star
10

VerifyCodeButton

This is a custom button on Android View, used to obtain a verification code.
Java
11
star
11

OKMock

🎈 A Gradle Plugin used to quickly fill field data on Android.
Java
9
star
12

ZProgressBar

一个可动态配置颜色、弧度,带动画的自定义 ProgressBar
Java
8
star
13

TimeLineLayout

This is a simple timeline layout that applies to less data. (这是一个简单的时间轴布局,适用于数据量少的情况)
Java
8
star
14

ImageComparator

🌅 Image comparator on android.
Kotlin
7
star
15

InspireWritingPlugin

🔧 An IntelliJ IDEA plugin is used to inspire you to write code.
Kotlin
6
star
16

android-plugin-template

An android gradle plugin template.
Kotlin
5
star
17

RatingBar

RatingBar on Unity.
C#
3
star
18

CodeStatistics

📈 Code statistic build with tornadofx. supports export excel or csv.
Kotlin
2
star
19

IncrementLint

🔍 A Gradle Plugin that supports Lint increment scanning.
Kotlin
2
star