A wave view of android,can be used as progress bar.

Overview

icon

WaveView

![Gitter](https://badges.gitter.im/Join Chat.svg) Android Arsenal

A wave view of android,can be used as progress bar.

Screenshot


APK


demo.apk

What can be used as


  • background
  • progress bar

How to use


https://github.com/john990/WaveView/blob/master/app/src/main/res/layout/main.xml#L7-L17

    <com.john.waveview.WaveView
        android:id="@+id/wave_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="#ff702e8c"
        wave:above_wave_color="@android:color/white"
        wave:blow_wave_color="@android:color/white"
        wave:progress="80"
        wave:wave_height="little"
        wave:wave_hz="normal"
        wave:wave_length="middle" />

or you can just use(default progress is 80%)

    <com.john.waveview.WaveView
        android:id="@+id/wave_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/holo_purple"
        />

dependencies

allprojects {
		repositories {
			...
			maven { url "https://jitpack.io" }
		}
	}
	
	dependencies {
	        compile 'com.github.john990:WaveView:v0.9'
	}
Comments
  • gap time in wave.java

    gap time in wave.java

    Checking the code, found out this: long gap = 16 - System.currentTimeMillis() - start; File: Wave.java -- Class: RefreshProgressRunnable i am always getting negative values...why not make it: long gap = 16 - (System.currentTimeMillis() - start); so it gets a positive number always and we can delete gap < 0 ? 0 : gap check?

    opened by Golgorz 1
  • Update project

    Update project

    Hello there,

    I forked your great project to make it easier to implement with gradle. You can check it out from here

    Thanks again for perfect library. Good luck.

    opened by emreaktrk 1
  • High CPU usage ?

    High CPU usage ?

    After a long time, the phone gets hot and the monitor in AS tells the cpu usage is around 30%(for only one view, about 60% for two view) ? Anyone met the problem?

    opened by 531149907 0
  • Add a Gitter chat badge to README.md

    Add a Gitter chat badge to README.md

    opened by gitter-badger 0
  • feat: Wave color customisable

    feat: Wave color customisable

    • Users can apply background color, wave filling's color and alpha declaratively (XML) or programatically. [#6,#23]

    • Users can alter above and below wave's color and alpha. [#23]
    <com.john.waveview.WaveView
            android:id="@+id/wave_view"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="#FFFFFF"
            wave:above_wave_color="@color/dark_blue"
            wave:blow_wave_color="@color/light_blue"
            wave:above_wave_color_alpha="0.5"
            wave:blow_wave_color_alpha="0.3"
            wave:progress="80"
            wave:wave_height="large"
            wave:wave_hz="normal"
            wave:wave_length="middle" 
            wave:wave_color="@color/holo_purple"
            wave:wave_alpha="0.5"/>
    
            waveView.setAboveWaveColor(color);
            waveView.setBlowWaveColor(color);
            waveView.setWaveColor(color);
            waveView.setWaveAlpha(0.5f);
            waveView.setAboveWaveColorAlpha(0.3f);
            waveView.setBlowWaveColorAlpha(0.3f);
    
    • Made default above and below wave color to be that of the actual wave color, instead of white color.
    • Users can make the wave color to be their gradient color. [#24]

    ....
    wave:background="@drawable/gradient_background"/>
    

    waveView.setWaveBackgroundDrawable(getResources().getDrawable(R.drawable.gradient_background));

    opened by Kalaiz 1
  • feat: Fill to brim

    feat: Fill to brim

    • Allows users to let the view fill to the brim on their discretion via the newly created boolean attribute: fill_to_brim.

    Users alter this feature like this:
    . . .
    wave:wave_length="middle"
    wave:fill_to_brim="true" />
    
    • Includes only Gradle update and README Badge fix done in #25. Note: It does not consider the feature implemented in #25.

    • README sample code update based on this feature.

    opened by Kalaiz 0
  • feat: Customisable WaveHz

    feat: Customisable WaveHz

    • Users can change wave speed manually; Any value [0,1]. This will give them more control on the speed of the wave. Example of using custom hz value for wave:

    Users simply have to set the newly altered attribute wave_hz:

    wave:wave_hz="0.09"
    wave:fill_to_brim="true" />
    
    • Upgraded Gradle plugin version to 4.11 and Gradle version to 6.5 While running on Android Studio IDE 4.1.1,a prompt to upgrade Gradle appeared"Support for builds using Gradle versions older than 2.6 was removed in tooling API version 5.0. You are currently using Gradle version 2.2. You should upgrade your Gradle build to use Gradle 2.6 or later."

    • Updated and fixed minor issue regarding badge in README:

    • Added public getter for progess (#21)

    opened by Kalaiz 0
  • Gradient fill?

    Gradient fill?

    Is there a scope of the library being updated to support gradient fills? In order to support a subtle effect like the following (I am referring to the background alone, ignore the dark objects on each image) image It's a part of an app I am working on that has millions of downloads, and would thus impact a huge audience.

    opened by sagarvasnani 1
Releases(v0.9)
Owner
Kai Wang
Kai Wang
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
:barber: [Android Library] Stacked dual progress indicator progress-bar

StackedHorizontalProgressBar Specs Featured in Show some ❤️ Android library with ability to show two progress indicators in one horizontal progress ba

Nishant Srivastava 98 Nov 11, 2022
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
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
MusicBar 2.1 0.0 Java view visualize progress bar for sound file like sound cloud

MusicBar Setup dependencies { implementation 'com.oze.music:MusicBar:1.0.5' } Usage Function Description setAnimationChangeListener(OnMusicBarAn

emad 74 Aug 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
A wave-like loading drawable

#WaveLoading This library provides a wave loading animation as a Drawable. How to use Add dependency: compile 'com.race604.waveloading:library:1.1.1'

吴晶 1.4k Dec 5, 2022
a progress view used to grade mobiles phone

GradeProgressView a progress view used to grade mobiles phone #System Requirement Android API 11+, Because of the use of ValueAnimation, if you want u

deadline 87 Jul 17, 2022
A simple progress loader inspired by Can you Code this UI? Volume 6! - https://stories.uplabs.com/can-you-code-this-ui-volume-6-7bd09fa6dd92#.nyh2zhpvb

SlidingSquaresLoader Sliding Square Loader - A simple progress loader inspired by Can you Code this UI? Volume 6! Gradle Step 1. Add the JitPack repos

Hamza Fetuga 151 Jul 26, 2022
[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 Dec 31, 2022
[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
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
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
Open source android library for different progress bar designs

MultiProgressBar A progress bar library for Android that provides customized progress bars. Built with ❤︎ by Aseem Khare ?? Installation Add this in y

Aseem Khare 124 Nov 15, 2022
An android library to easily add circular progress bar into your Jetpack Compose apps.

CircularProgressBar for Jetpack Compose An android library to easily add circular progress bar into your Jetpack Compose apps. Have a Look Usage Circu

Hitanshu Dhawan 38 Oct 30, 2022
This is beautiful color arc progress bar.

ColorArcProgressBar 中文版 This is a customizable circular progressbar.It can achieve the effect of the QQ health's arc progress with XML. What's more, w

PASSION 928 Dec 6, 2022
A customizable indeterminate progress bar

DilatingDotsProgressBar Installation compile 'com.github.justzak:dilatingdotsprogressbar:1.0.1' Usage <com.zl.reik.dilatingdotsprogressbar.DilatingDo

Zachary Reik 628 Sep 24, 2022
Arc pointer - simple customized progress bar in the form of an arch

ArcPointer Simple customized progress bar in the form of an arch Demo Quick start Step 1 Gradle: compile 'io.github.dvegasa:arcpointer:1.0.2' Maven:

Ed Khalturin 79 Nov 22, 2022
Progress Bar in the shape of regular polygon.

N-SidedProgressBar Progress Bar in the shape of regular polygon. Download The library is available on jcenter. Just add the dependency to your build.g

Kaishu Sahu 69 Jul 25, 2022