项目作者: muramrr

项目描述 :
Custom android loading view based on dribbble shot
高级语言: Kotlin
项目地址: git://github.com/muramrr/LoadingView.git
创建时间: 2020-08-04T18:18:09Z
项目社区:https://github.com/muramrr/LoadingView

开源协议:Apache License 2.0

下载


LoadingView GitHub license

Custom loading view based on dribbble shot

sample

Originally based on this Dribbble shot.


Design on Dribbble

Installation

Add jitpack repo in your project.gradle

  1. allprojects {
  2. repositories {
  3. ...
  4. maven { url 'https://jitpack.io' }
  5. }
  6. }

Add implementation in your app.gradle

  1. dependencies {
  2. implementation 'com.github.muramrr:LoadingView:1.2'
  3. }

Usage

  1. <com.mmdev.loadingviewlib.LoadingView
  2. android:id="@+id/loadingView"
  3. android:layout_height="100dp"
  4. android:layout_width="100dp"
  5. app:loadStrokeColor="@android:color/white"
  6. app:loadStrokeWidth="6dp"
  7. app:layout_constraintBottom_toBottomOf="parent"
  8. app:layout_constraintLeft_toLeftOf="parent"
  9. app:layout_constraintRight_toRightOf="parent"
  10. app:layout_constraintTop_toTopOf="parent"
  11. ></com.mmdev.loadingviewlib.LoadingView>

By default animation is running automatically

You can pause and resume animation in your activity/fragment:

  1. loadingView.setOnClickListener {
  2. loadingView.toggleAnimation()
  3. }

License

GitHub license

  1. Copyright (c) 2020 Andrii Kovalchuk