waveview for android

Related tags

ProgressBar WaveView
Overview

中文介绍

WaveView

A view to display wave effect.

Screenshot

Screenshot

Integration

implementation 'com.gelitenight.waveview:waveview:1.0.0'

Setter methods:

  • setWaveShiftRatio - Shift the wave horizontally.
  • setWaterLevelRatio - Set water level.
  • setAmplitudeRatio - Set vertical size of wave.
  • setWaveLengthRatio - Set horizontal size of wave.

You can use Property Animation to animate WaveView.

// horizontal animation.
// wave waves infinitely.
ObjectAnimator waveShiftAnim = ObjectAnimator.ofFloat(
        mWaveView, "waveShiftRatio", 0f, 1f);
waveShiftAnim.setRepeatCount(ValueAnimator.INFINITE);
waveShiftAnim.setDuration(1000);
waveShiftAnim.setInterpolator(new LinearInterpolator());

// vertical animation.
// water level increases from 0 to center of WaveView
ObjectAnimator waterLevelAnim = ObjectAnimator.ofFloat(
        mWaveView, "waterLevelRatio", 0f, 0.5f);
waterLevelAnim.setDuration(10000);
waterLevelAnim.setInterpolator(new DecelerateInterpolator());
animators.add(waterLevelAnim);

// amplitude animation.
// wave grows big then grows small, repeatedly
ObjectAnimator amplitudeAnim = ObjectAnimator.ofFloat(
        mWaveView, "amplitudeRatio", 0f, 0.05f);
amplitudeAnim.setRepeatCount(ValueAnimator.INFINITE);
amplitudeAnim.setRepeatMode(ValueAnimator.REVERSE);
amplitudeAnim.setDuration(5000);
amplitudeAnim.setInterpolator(new LinearInterpolator());
animators.add(amplitudeAnim);

打个广告

美团平台及酒旅事业群招人啦,欢迎加入我们! 我可以帮忙内推,简历请发到我邮箱[email protected]

【美团网】高级Android开发工程师 工作内容: 负责美团酒店、旅游产品 Android 客户端的设计、开发与改进。

  1. 3年以上工作经验,2年以上Android开发经验;
  2. 熟悉Android系统,熟悉Android软件的开发、测试、分发流程;
  3. 良好的编程风格,扎实的编程基础和数据结构算法基础;
  4. 熟悉移动网络的特性,对网络编程和常用网络协议有较深刻理解和经验;
  5. 有一定的架构设计能力,良好的编码能力,编写文档能力;
  6. 热爱互联网和新技术,具有极强的快速学习能力;
  7. 有以下特征优先考虑:
    • 有开源作品或技术博客(需原创技术文章);
    • 熟悉Socket编程。

北京、上海、厦门、成都都有职位,更多职位请见职位列表

Comments
  • Why can't I set WaveView opaque?

    Why can't I set WaveView opaque?

    I want to set WaveView opaque. I have set up the Alpha of wavePaint1 to 255. But no matter what i do, View is still transparent. Do you have some good method?

    Like this(the red view should be opaque). image

    opened by nantofu 3
  • 选择颜色,然后旋转屏幕会crash

    选择颜色,然后旋转屏幕会crash

    复现:随便选择一个颜色(除默认的灰色),旋转屏幕

    原因分析:修改颜色后旋屏会调用 setWaveColor(),此时heightwidth都为 0 不知道为什么会调用 setWaveColor()

    暂时解决: 在 createShader() 中添加如下代码

    if (getHeight() == 0) {
                return;
    }
    
    duplicate 
    opened by meijieman 1
  • A Gap in the Wave

    A Gap in the Wave

    In my simulator(1080*1920,API 19),there is a white vertical line in the wave, and I have find the solution:In WaveView.java -> createShader ,change from final float endX = getWidth(); to final float endX = getWidth()+1;

    opened by hzqjyyx 0
  • Updated CompiledSdkVersion from 25 to 28

    Updated CompiledSdkVersion from 25 to 28

    From new Android guidelines, all app must be above API level 26. So I updated CompileSdkVersion to 28 Update the gardle version to 4.10.1 Replaced the compile attribute in gradle file with implementation tag I have also run the entire updated app on Emulator, and it is working fine

    opened by sanjeevyadavIT 0
  • Support for latest API level

    Support for latest API level

    Hello,

    We are currently using your library in one of our applications. Actually we need a favour from your side. According to the Google Play Policy, all apps have to provide support for at least API level 26. It seems like yours is not as per the new Google Play Policy. We are targeting API level 28. So can you please provide us support for API level 28 in your current repository?

    opened by ebghrimtech 2
  • Making the WaveView fill the remaining space after rotation is not working

    Making the WaveView fill the remaining space after rotation is not working

    I am trying to use the library in conjunction with the gyroscope values so that when I rotate the phone, I get the water flowing effect.

    The only problem is, when the WaveView rotates, it doesn't expand it's height and width to fill the blank area that's generated in the sides. This happens even if I have given match_parent as the width.

    Is there a way to get this working? Or am I getting something wrong?

    I have put a stackoverflow question too, with images, here : https://stackoverflow.com/q/48369005/7947474

    opened by BasitTramboo 0
  • How to change water level?

    How to change water level?

    Water level always set to 50% of view. How i can set any other level to using it like a progress bar?

    Method setWaterLevelRatio dont do anything.

    Thanks in advance!

    opened by stovberpv 2
Owner
NIGHT
NIGHT
[Android] Round Corner Progress Bar Library for Android

RoundCornerProgressBar Round corner is cool. Let's make your progress bar to round corner Colorful progress bar with round corner on progress which yo

Akexorcist 2.3k Jan 7, 2023
Now deprecated. A small Android library allowing you to have a smooth and customizable horizontal indeterminate ProgressBar

Description Small library allowing you to make a smooth indeterminate progress bar. You can either user your progress bars and set this drawable or us

Antoine Merle 4.4k Dec 30, 2022
A beautiful, slim Android ProgressBar.

Android NumberProgressBar The NumberProgressBar is a bar, slim and sexy (every man wants! ). I decided to do this because I was really tired of androi

代码家 6k Jan 7, 2023
An android library to display a progressbar that goes around an image.

android-square-progressbar First things first This library is setup to work with the Android Studio and Gradle. If you're using the Eclipse environmen

Yannick Signer 1.3k Nov 15, 2022
Android library to display progress like google does in some of his services.

GoogleProgressBar This library is not maintained anymore and there will be no further releases Android library to display different kind of google rel

JPARDOGO 1.3k Dec 27, 2022
Android loading view

Loading Loading is a poject with kinds of Android loading view. Yan can see the wiki for more detail. RotateLoading BookLoading NewtonCradleLoading Us

null 1.2k Jan 1, 2023
Android fillable progress view working with SVG paths. This is a nice option too if you want to create an interesting branding logo for your app. Based on the iOS project: https://github.com/poolqf/FillableLoaders

Android FillableLoaders Android Open Source library providing an interesting fillable progress view working with SVG paths. This is a nice option too

Jorge Castillo 2k Jan 1, 2023
Android AlertDialog with moving dots progress indicator

Spots progress dialog Android AlertDialog with moving spots progress indicator packed as android library. =========== Usage The library available in m

Maksym Dybarskyi 1.1k Dec 26, 2022
An Android library providing to realize wave loading effect.

WaveLoadingView WaveLoadingView - An Android library that provides a realistic wave-loading effect. Sample Usage For a working implementation of this

Tang 1.7k Jan 2, 2023
Android CatLoadingView

Android CatLoadingView This project idea is from Link. Thanks for the idea. I like the animation in this picture: ...as you see it right now, I hope y

Roger 1.1k Dec 3, 2022
A customizable, animated progress bar that features rounded corners. This Android library is designed to look great and be simple to use 🎉

RoundedProgressBar Easy, Beautiful, Customizeable The RoundedProgressBar library gives you a wide range of customizable options for making progress ba

null 541 Jan 1, 2023
Some beautiful android loading drawable, can be combined with any view as the LoadingView or the ProgressBar. Besides, some Drawable can customize the loading progress too.

LoadingDrawable: Android cool animation collection 前言 CircleRotate源码解析 Fish源码解析 LoadingDrawable is some android animations implement of drawable: a li

dinus_developer 4.1k Dec 27, 2022
A progress wheel for android, intended for use instead of the standard progress bar.

Deprecation warning This project is no-longer maintained, and has not been maintained for a few years now. If you're looking for an alternative librar

Todd Davies 2.7k Dec 29, 2022
An implement of ProgressHUD for Android, similar to MBProgressHUD, SVProgressHUD for iOS.

KProgressHUD A progress HUD implementation for Android. Inspired by MBProgressHUD for iOS. Compatibility Android 2.3 and later Adding KProgressHUD to

Kaopiz Software Co., Ltd. 1.6k Dec 27, 2022
A wave view of android,can be used as progress bar.

WaveView ![Gitter](https://badges.gitter.im/Join Chat.svg) A wave view of android,can be used as progress bar. Screenshot APK demo.apk What can be use

Kai Wang 1.3k Dec 28, 2022
A circular android ProgressBar library which extends View, and the usage same as ProgressBar, It has solid,line and solid_line three styles. Besides, progress value can be freely customized.

CircleProgressBar 中文版文档 The CircleProgressBar extends View, It has both solid and line two styles. Besides, progress value can be freely customized. I

dinus_developer 1.2k Jan 3, 2023
DownloadProgressBar is an android library that delivers awesome custom progress bar. You can manipulate it's state in every way.

Download Progress Bar Android progress bar with cool animation, inspired by : https://dribbble.com/shots/2012292-Download-Animation ###Attributes Attr

Mariusz Brona 978 Nov 10, 2022
Android - An action bar item which acts both as a refresh button and as a progress indicator

RefreshActionItem An action bar item that implements this common pattern: Initially it shows a refresh button. If the button is clicked, a background

Manuel Peinado Gallego 655 Nov 10, 2022
Android library for showing progress in a highly customizable pie.

ProgressPieView Android library for showing progress in a highly customizable pie. Choose from the broad spectre of styleable elements: ppvStrokeWidth

Filip Puđak 399 Dec 29, 2022