A wave-like loading drawable

Overview

#WaveLoading

This library provides a wave loading animation as a Drawable.

screenshot

How to use

Add dependency:

compile 'com.race604.waveloading:library:1.1.1'

Use in your project with only one line:

Drawable mWaveDrawable = new WaveDrawable(otherDrawable);

// Use as common drawable
imageView.setImageDrawable(mWaveDrawable);

Other configurable APIs:

  • public void setWaveAmplitude(int amplitude), set wave amplitude (in pixels)
  • public void setWaveLength(int length), set wave length (in pixels)
  • public void setWaveSpeed(int step), set wave move speed (in pixels)
  • public void setIndeterminate(boolean indeterminate), like progress bar, if run in indeterminate mode, it'll increase water level over and over again, otherwise, you can use boolean setLevel(int level) to set the water level, acting as loading progress.
  • public void setIndeterminateAnimator(ValueAnimator animator), set you customised animator for wave loading animation in indeterminate mode.

License

MIT

Comments
  • setLevel bug in Android 7.1.1

    setLevel bug in Android 7.1.1

    There are only two states of Drawable, completely empty and fully colored, even the smallest percent fills entire Drawable. It works perfectly on the same device running 6.0.1. Devices running 4.4 and 5.1 are also unaffected. Thank you for this great library.

    opened by brzivoz 5
  • My two cents to improve the animation

    My two cents to improve the animation

    Changing the ValueAnimator starting point to 0.1f gives the impression that the waves are starting from the bottom of the drawable, rather than starting from underneath the drawable. It makes it feel more real. I’ve also changed the repeat mode to REVERSE as this gives a much nicer animation for indeterminate animations.

    opened by donedeal-ronan 1
  • the function setLevel() does not work

    the function setLevel() does not work

       Here is my code 
    
       ImageView image1 = findViewById(R.id.image1);  //my battery image
        Drawable mWaveDrawable = new WaveDrawable(image1.getDrawable());
        mWaveDrawable.setLevel(35);
        image1.setImageDrawable(mWaveDrawable);
       
        The water level of my image is 0
    

    Screenshot_2019-04-19-19-09-11-934_com example wa .I can not get a fixed 35 level.

    opened by David13579246810 3
  • Layout - XML

    Layout - XML

    How can i use this library, but setting all the configuration from xml... I.e: Something like this

    
        <WaveDrawable
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_margin="8dip"
            app:setIndeterminate="true"
            app:level="40"
            app:WaveAmplitude="65"
            app:WaveLength="40"
            app:WaveeSpeed="60" />
    
    
    opened by patoigz 1
  • couldn't add your library

    couldn't add your library

    I am trying to add this library to my project . But when I add implementation 'com.race604.waveloading:library:1.1.1' to my build.gradle I can't sync project with this error . org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:processDebugManifest'.

    opened by omidnaghipoor 2
Owner
吴晶
吴晶
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 loading or progress dialog widget library, provide efficient way to implement iOS like loading dialog and progress wheel

ACProgressLite English Version / 中文版本 An Android loading widget library. Lite and easy to use, strong customizability. Can be used to implement 'iOS'

Cloudist Technology Co., Ltd. 234 Nov 24, 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
Loading layout is a container view that manages easy switching between loading, completed and other states of your screen with a single line.

Loading layout is a container view that manages easy switching between loading, completed and other states of your screen with a single line.

ValarTech 16 Jul 5, 2022
MaterialLoadingProgressBar provide a styled ProgressBar which looks like SwipeRefreshLayout's loading indicator(support-v4 v21+)

MaterialLoadingProgressBar MaterialLoadingProgressBar provide a styled ProgressBar which looks like SwipeRefreshLayout's loading indicator(support-v4

lsjwzh 1.1k Nov 19, 2022
:seedling: A custom loading view for android, just like alipay.

#SmileyLoadingView A custom loading view, just like alipay. Usage Edit your layout XML: <cn.refactor.smileyloadingview.lib.SmileyLoadingView

null 411 Apr 24, 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
An animated circle loading view

Animated Circle Loading View A determiante/indetermiante loading view animation. Based on android-watch-loading-animation by Nils Banner. How it looks

José Luis Martín 1.2k Dec 7, 2022
Customizable bouncing dots for smooth loading effect. Mostly used in chat bubbles to indicate the other person is typing.

LoadingDots for Android Customizable bouncing dots view for smooth loading effect. Mostly used in chat bubbles to indicate the other person is typing.

Eyal Biran 162 Dec 2, 2022
A loading animation based on Floating Action Button

FAB-Loading A loading animation based on Floating Action Button. Usage Include the LoadingView widget in your view: <io.saeid.fabloading.LoadingView

Saeed Masoumi 689 Oct 14, 2022
Some loading GIF .

Android GifLoadingView This project idea is from Link . Thanks for the idea. I like all the animation in that webpage , but it's so hard to develop al

Roger 1.3k Dec 12, 2022
A highly configurable library to do loading progress with animated balls

Loading Balls A highly configurable library to do loading progress with animated balls for Android How to use Custom attributes lib:path="triangle" Th

Adrián Lomas 930 Dec 7, 2022
Cool bezier loading view

What's BezierLoadingView ? A cool loading view with Bezier and a smooth circular motion, Demo Features Bezier Circular motion ##Attributes name format

巴掌 828 Oct 10, 2022
ColoringLoading 4.7 0.0 Java This project provide Coloring Loading View for Android. And this project is not using the image file!

ColoringLoading ![Release](https://img.shields.io/github/release/recruit-lifestyle/ColoringLoading.svg?label=maven version) This project provide Color

Recruit Lifestyle Co. Ltd. 379 Jul 25, 2022
Android loading animations

Android-SpinKit Android loading animations(I wrote a android edition according SpinKit) Demo Apk Preview Gradle Dependency dependencies { implement

ybq 8.4k Jan 5, 2023
KdLoadingView - A Custom Loading View for Android

KdLoadingView This is a circular loading view for android. Motivation In default progress view, its hard to change drawable, color and animation. So t

Saurabh kumar 1 Oct 26, 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
A 'Google Fit' like activity indicator for Android

WheelIndicatorView A 'Google Fit' like activity indicator for Android Screenshots Usage How to use: Add a "WheelIndicatorView" in the layout editor li

David Lázaro 396 Nov 25, 2022
A simple lib to create a ring-like progress view with corner edges

ProgressRingView Installation Gradle: dependencies { compile 'com.github.flepsik:progress-ring-view:1.2.1' } Maven: <dependency> <groupId>com.g

null 71 Dec 5, 2021