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

Overview

SlidingSquaresLoader

Sliding Square Loader - A simple progress loader inspired by Can you Code this UI? Volume 6!

sslv animation

Gradle

Step 1. Add the JitPack repository to your build file

allprojects {
	repositories {
		maven { url 'https://jitpack.io' }
	}
}

Step 2. Add the dependency

dependencies {
	compile "com.github.biodunalfet:SlidingSquaresLoader:1.0"
}

Usage

  • In XML Layout
<com.hamza.slidingsquaresloaderview.SlidingSquareLoaderView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:sslv_start="true"
    app:sslv_delay="15"
    app:sslv_duration="150"
    app:sslv_gap="2dp"
    app:sslv_square_length="12dp"
    app:sslv_color="@color/colorPrimary"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    />
  1. sslv_start = boolean that determines if the loader should start sliding. Default value is true.
  2. sslv_duration = the amount of milliseconds it takes for a square to complete sliding. Default value is 350
  3. sslv_delay = the number of milliseconds to wait before sliding. Default value is 25
  4. sslv_square_length = the dimension of each square. Default value is 25dp
  5. sslv_gap = the dimension of the gap between each square. Default value is 5dp
  6. sslv_color = the color of the square. Defaults to #ff8f00
  • In Java
SlidingSquareLoaderView slidingview2 = (SlidingSquareLoaderView) findViewById(R.id.sliding_view2);
slidingview.start();    // starts the sliding
slidingview.stop();     // stops the sliding
slidingview.setDuration(xxx);   // sets duration of sliding
slidingview.setDelay(xxx);  // sets delay period before sliding
slidingview.setColor(Color.parseColor("#2196F3"));  // sets the color of the squares

License

The contents of this repository are covered under the MIT License

You might also like...
A wave view of android,can be used as progress bar.
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

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.
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

Progress Button is a android library for hanling different types state like active, finished, enabled, disabled and reset with a single line of code.
Progress Button is a android library for hanling different types state like active, finished, enabled, disabled and reset with a single line of code.

Progress Button is a android library for hanling different types state like active, finished, enabled, disabled and reset with a single line of code.

A customizable, animated progress bar that features rounded corners. This Android library is designed to look great and be simple to use 🎉
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

Arc pointer - simple customized progress bar in the form of an arch
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:

A simple lib to create a ring-like progress view with corner edges
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 groupIdcom.g

A simple and flexible Fillable Progress Layout written in Kotlin
A simple and flexible Fillable Progress Layout written in Kotlin

FillProgressLayout 🔥 A simple and flexible Fill Progress Layout written in Kotlin 🔥 Netflix button animation using FillProgressLayout Support Librar

⏳ A delightful progress animation that you'll fall in ❤️️ with, very easily.
⏳ A delightful progress animation that you'll fall in ❤️️ with, very easily.

TinglingSquares View A delightful progressbar animation. Demo Download Add this to your app module's build.gradle file dependencies { compile

Android ProgressBar that
Android ProgressBar that "bends" under its own weight. Inspired by http://drbl.in/nwih

RopeProgressBar Android ProgressBar that "bends" under its own weight. Attributes Attribute Type Default Usage app:ropeMax integer 0 The max value of

Owner
Hamza Fetuga
Hamza Fetuga
A loader that measures up Material Design

SpinnerLoader A loader that measures up Material Design. This is an implemention of http://t.co/sUuYTeKOzp Usage only one attribute point_color <com.f

Rongchan Liu 106 Jun 19, 2022
animated blinking loader

BlinkingLoader animated blinking loader Usage :- <app.m4ntis.blinkingloader.BlinkingLoader android:id="@+id/dotLoading1" android:layout_wi

Rajiv Singh 22 Nov 15, 2022
A square animated loader.

SquareLoading Design Design by Divan Raj from Animated Loader How to use 1.Add the dependency dependencies { compile 'io.github.yuweiguocn:S

yuweiguo 309 Apr 25, 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
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
: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
IOSProgressBar is a progress-bar lib for android. And the progress-bar looks like iOS system style

IOSProgressBar is a progress-bar lib for android. And the progress-bar looks like iOS system style

heyangyang 6 Aug 25, 2022
Simple Progress View that you can compare things, like statistics of a Football match

Simple Progress View that you can compare things, like statistics of a Football match

Kostas Antoniou 29 Jun 8, 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
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