Giter VIP home page Giter VIP logo

wavedrawable's Introduction

WaveDrawable

extremely real & natural wave-like loading drawable

打造最接近真实自然的水波loading动画

preview/效果

9.PNG 7.gif 8.gif 9.gif

how to use/使用

  1. Add the JitPack repository to your build file
	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
  1. Add the dependency
	dependencies {
	        implementation 'com.github.hotstu:WaveDrawable:1.0.0'
	}

properties/设置

below is the properties can be configed/支持以下属性

  • direction

    the directon the wave expanding, can be one of TOP LEFT RIGHT BOTTOM

    方向,可以是TOP LEFT RIGHT BOTTOM

  • progress

    the expanding progress, in [0, 1]

    进度 [0, 1]

  • waveHeight

    the height of the wave slop, default is height * .05f

    设置波峰高度,px,默认为height * .05f

  • waveStrength

    the strength of the wave, the larger the more slop in area, default is 0.01f

    设置波浪强度 数值越大单位区域内峰谷越多,默认0.01f

  • waveSpeed

    the speed of the wave, the larger the wave change faster, default is 0.05f

    设置波浪速度 数值越大波浪变化越快,默认0.05f

wavedrawable's People

Contributors

hotstu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.