All Projects → fairytale110 → SquaresLoadingView

fairytale110 / SquaresLoadingView

Licence: Apache-2.0 license
A SquaresLoadingView based on android.View, nicely rotation、easy to use.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to SquaresLoadingView

Stateview
✨ StateView is an invisible, zero-sized View that can be used to lazily inflate loadingView/emptyView/retryView at runtime.
Stars: ✭ 573 (+2103.85%)
Mutual labels:  custom-view, loading
Statefullayout
Android layout to show template for loading, empty, error etc. states
Stars: ✭ 813 (+3026.92%)
Mutual labels:  custom-view, loading
Mkloader
Beautiful and smooth custom loading views
Stars: ✭ 1,377 (+5196.15%)
Mutual labels:  custom-view, loading
flagpack
A lightweight flag icon toolkit for the web.
Stars: ✭ 51 (+96.15%)
Mutual labels:  square
SSSwiftUISpinnerButton
SSSwiftUISpinnerButton is a collection of various spinning animations for buttons in SwiftUI.
Stars: ✭ 37 (+42.31%)
Mutual labels:  loading
FlowerLoading
🌻 Android loading or progress view, just like iOS IndicatorView.
Stars: ✭ 31 (+19.23%)
Mutual labels:  loading
AVLoadingIndicatorView
DEPRECATED
Stars: ✭ 9,655 (+37034.62%)
Mutual labels:  loading
dlib
Dynamic loading library for C/C++
Stars: ✭ 19 (-26.92%)
Mutual labels:  loading
XHLoadingView
🚀A load Loading page state view,load,no network,empty data,load failure state switch.
Stars: ✭ 58 (+123.08%)
Mutual labels:  loading
password-view
Android password animation
Stars: ✭ 43 (+65.38%)
Mutual labels:  custom-view
Android-Code-Demos
📦 Android learning code demos.
Stars: ✭ 41 (+57.69%)
Mutual labels:  custom-view
RxPagingLoading
Easy handling of the Paging or Loading screens states
Stars: ✭ 45 (+73.08%)
Mutual labels:  loading
LINE-Source
Line Application Source
Stars: ✭ 43 (+65.38%)
Mutual labels:  square
XLDotLoading
iOS 新浪微博红包加载动画
Stars: ✭ 30 (+15.38%)
Mutual labels:  loading
react-apollo-mutation-state
A React HOC wrapper for Apollo GraphQL mutation, provides loading and error in props
Stars: ✭ 16 (-38.46%)
Mutual labels:  loading
LINE-FreshBot
LINE Bot
Stars: ✭ 23 (-11.54%)
Mutual labels:  square
loading-indicator
🚦 Simple and customizable command line loading indicator
Stars: ✭ 18 (-30.77%)
Mutual labels:  loading
react-data-fetching-components
♻️ Asynchronously load data for your React components with SSR
Stars: ✭ 13 (-50%)
Mutual labels:  loading
blazor-lazy-loading
Automatic Lazy Loading support for Blazor (Server and WebAssembly)
Stars: ✭ 89 (+242.31%)
Mutual labels:  loading
Custom-Grid-View
Custom Drag and Drop Grid for Home Assistant
Stars: ✭ 103 (+296.15%)
Mutual labels:  custom-view

SquaresLoadingView

A SquaresLoadingView based on android.View, nicely rotation、easy to use.

API License Download

Preview

preview.gif

Features

Supported functions:

  • Optionally configure the colors of each square

  • Manually stop and start the animation

  • Configurable anim's speed

  • Support the padding settings

Support will be forthcoming:

  • Manual rotation

  • Refresh header view support

  • Etc

How to

To get a Git project into your build:

Step 1. Add the JitPack repository to your build file Add it in your root build.gradle at the end of repositories:

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

Step 2. Add the dependency

 dependencies {
     implementation 'com.github.fairytale110:SquaresLoadingView:1.0.0'
 }

Usage

  <tech.nicesky.libsquaresloadingview.SquaresLoadingView
        android:id="@+id/slv_loading"
        android:padding="10dp"
        app:slv_scale_speed="0.77"
        app:slv_squares_alpha="1"
        app:slv_background="@android:color/white"
        android:layout_width="80dp"
        android:layout_height="200dp" />

or

  private void loading(){

        int[] colorsDefault = {
                Color.parseColor("#C5523F"),
                Color.parseColor("#F2B736"),
                Color.parseColor("#499255"),
                Color.parseColor("#F2B736"),
                Color.parseColor("#499255"),
                Color.parseColor("#1875E5"),
                Color.parseColor("#499255"),
                Color.parseColor("#1875E5"),
                Color.parseColor("#C5523F"),
        };

        SquaresLoadingView squaresLoadingView = new SquaresLoadingView(this);
        squaresLoadingView.setAnimSpeed(0.5F);
        squaresLoadingView.setSquareAlpha(0.8F);
        squaresLoadingView.setColors(colorsDefault);
        squaresLoadingView.start();
        //squaresLoadingView.stop();
    }

Participate in the contribution

[email protected]

Author

[email protected]

简书: http://jianshu.com/u/d95b27ffdd3c

掘金: https://juejin.im/user/596d91ee6fb9a06bb874a800/pins

LICENSE

  Copyright 2018 fairytale110

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