All Projects → scwang90 → Multiwaveheader

scwang90 / Multiwaveheader

Wave,水波,Android 炫酷的多重水波纹 MultiWaveHeader

Programming Languages

java
68154 projects - #9 most used programming language
kotlin
9241 projects
Batchfile
5799 projects

Projects that are alternatives of or similar to Multiwaveheader

Aplay
A Better(Maybe) iOS Audio Stream、Cache、Play Framework
Stars: ✭ 44 (-97.32%)
Mutual labels:  wave, framework
Framework
Repositório principal contendo o Core e Extensions: JPA, Security, WS
Stars: ✭ 124 (-92.45%)
Mutual labels:  framework
Csvimporter
Import CSV files line by line with ease
Stars: ✭ 120 (-92.7%)
Mutual labels:  header
Group
轻量级框架 。实现了定时任务功能,分布式任务队列,命令行控制台,数据库脚本自动化,单元测试, rpc服务,多进程服务(模拟map-reduce)等等实用的功能!! 文档 https://fucongcong.gitbooks.io/group-doc/content/.
Stars: ✭ 122 (-92.57%)
Mutual labels:  framework
Harmonic
A high performance and scalable RTMP live streaming application framework
Stars: ✭ 121 (-92.64%)
Mutual labels:  framework
Sun
Android-Sun-Framework 模块化开发框架
Stars: ✭ 123 (-92.51%)
Mutual labels:  framework
Tinypart
TinyPart is an iOS modularization framework implemented by Ojective-C. It also supports URL-routing and inter-module communication. TinyPart是一个由Objective-C编写的面向协议的iOS模块化框架,同时它还支持URL路由和模块间通信机制。
Stars: ✭ 120 (-92.7%)
Mutual labels:  framework
Kepler
The open source full-stack geosocial network platform
Stars: ✭ 125 (-92.39%)
Mutual labels:  framework
Caramel
a simple to use, easy to remember css framework
Stars: ✭ 124 (-92.45%)
Mutual labels:  framework
Eviltwinframework
A framework for pentesters that facilitates evil twin attacks as well as exploiting other wifi vulnerabilities
Stars: ✭ 122 (-92.57%)
Mutual labels:  framework
Telegraff
Kotlin DSL для разработки Telegram ботов
Stars: ✭ 122 (-92.57%)
Mutual labels:  framework
O2
2D Game Engine with visual WYSIWYG editor
Stars: ✭ 121 (-92.64%)
Mutual labels:  framework
Masonite
The Modern And Developer Centric Python Web Framework. Be sure to read the documentation and join the Slack channel questions: http://slack.masoniteproject.com
Stars: ✭ 1,681 (+2.31%)
Mutual labels:  framework
Ipv6tools
IPv6Tools is a robust modular framework that enables the ability to visually audit an IPv6 enabled network.
Stars: ✭ 120 (-92.7%)
Mutual labels:  framework
Kit
Unity3D开发的工具包集合, 集成常见的开发组件以免于重复造轮子。佛系更新中。。。
Stars: ✭ 123 (-92.51%)
Mutual labels:  framework
Puresharp
Puresharp is a Framework that provides the essential APIs (AOP, IOC, etc...) to productively build high quality (.NET 4.5.2+ & .NET Core 2.1+) applications through reliability, scalability and performance without no compromise
Stars: ✭ 120 (-92.7%)
Mutual labels:  framework
Arikawa
A Golang library and framework for the Discord API.
Stars: ✭ 123 (-92.51%)
Mutual labels:  framework
Modulz Atomic
A set of single-purpose CSS classes for scalable front-end development.
Stars: ✭ 122 (-92.57%)
Mutual labels:  framework
Components
MobileUI was created thinking of making your hybrid application faster and smaller since you only install what you are really going to use for UI.
Stars: ✭ 125 (-92.39%)
Mutual labels:  framework
Qpcpp
QP/C++ real-time embedded framework/RTOS for embedded systems based on active objects (actors) and hierarchical state machines
Stars: ✭ 124 (-92.45%)
Mutual labels:  framework

多重水波纹 - MultiWaveHeader

License JCenter MinSdk Platform Author

English | 中文

MultiWaveHeader 是一个可以高度定制每个波形的Android水波控件。

功能特点

  • 支持调节进度.
  • 支持调节速度.
  • 支持设置方向(上下).
  • 支持设置水波的数量(无上限).
  • 支持精确定义水波的参数(偏移、拉伸、原始速度).
  • 支持设置颜色渐变和改变渐变方向.

演示

Download APK-Demo

每天领红包

最近开通了支付宝商家,生成了个红包二维码,经常用支付宝的童鞋可有扫码领优惠红包,扫码只会拿红包,不会有任何损失,每天都可以扫码哦!

支付宝红包

实战

控制台

方向

顶部 底部
一对 单一

简单用例

1.在 build.gradle 中添加依赖

    implementation 'com.scwang.wave:MultiWaveHeader:1.0.0'

    //androidx
    implementation 'com.scwang.wave:MultiWaveHeader:1.0.0-andx'

2.在XML布局文件中添加 MultiWaveHeader

    <com.scwang.wave.MultiWaveHeader
        android:id="@+id/waveHeader"
        android:layout_width="match_parent"
        android:layout_height="200dp"/>

属性

可以配置一些基本的属性.

java
    MultiWaveHeader waveHeader = findViewById(R.id.waveHeader);

    waveHeader.setStartColor(R.color.colorPrimary);
    waveHeader.setCloseColor(R.color.colorPrimaryDark);
    waveHeader.setColorAlpha(.5f);

    waveHeader.setWaveHeight(50);
    waveHeader.setGradientAngle(360);
    waveHeader.setProgress(.8f);
    waveHeader.setVelocity(1f);
    waveHeader.setScaleY(-1f);

    waveHeader.setWaves("PairWave");

    waveHeader.start();
    waveHeader.stop();
    waveHeader.isRunning();
xml
    <com.scwang.wave.MultiWaveHeader
        android:id="@+id/waveHeader"
        android:layout_width="match_parent"
        android:layout_height="200dp"
        android:scaleY="-1"
        app:mwhVelocity="1"
        app:mwhProgress="1"
        app:mwhRunning="true"
        app:mwhGradientAngle="45"
        app:mwhWaveHeight="50dp"
        app:mwhColorAlpha="0.45"
        app:mwhStartColor="@color/colorPrimaryDark"
        app:mwhCloseColor="@color/colorPrimaryLight"
        app:mwhWaves="MultiWave"/>

自定义

可以高度定制每一条水波.

java
    MultiWaveHeader waveHeader = findViewById(R.id.waveHeader);

    String[] waves = new String[]{
        "70,25,1.4,1.4,-26",//wave-1:offsetX(dp),offsetY(dp),scaleX,scaleY,velocity(dp/s)
        "100,5,1.4,1.2,15",
        "420,0,1.15,1,-10",//wave-3:水平偏移(dp),竖直偏移(dp),水平拉伸,竖直拉伸,速度(dp/s)
        "520,10,1.7,1.5,20",
        "220,0,1,1,-15",
    };
    waveHeader.setWaves(TextUtils.join(" ", Arrays.asList(waves)));// custom
    waveHeader.setWaves("PairWave");// default two waves
    waveHeader.setWaves("MultiWave");// default five waves
xml
    <com.scwang.wave.MultiWaveHeader
        android:id="@+id/waveHeader"
        android:layout_width="match_parent"
        android:layout_height="200dp"
        app:mwhWaves="PairWave"
        app:mwhWaves="MultiWave"
        app:mwhWaves="
            70,25,1.4,1.4,-26
            100,5,1.4,1.2,15
            420,0,1.15,1,-10
            520,10,1.7,1.5,20
            220,0,1,1,-15"/>

其他作品

SmartRefreshLayout
SmartRefreshHorizontal

License

Copyright 2017 scwang90

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
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].