Skip to content

Use this pencilLoader for showing custom loader on android dialogs.

Notifications You must be signed in to change notification settings

alokverma/PencilProgressBar

Repository files navigation

PencilLoader

Use this pencilLoader for showing custom loader on android dialogs.

Demo

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.alokverma:PencilProgressBar:Tag'

}

How to use

     <com.akki.pencilloader.PencilLoader
          android:id="@+id/pencil"
          android:padding="30dp"
          android:layout_width="match_parent"
          android:layout_height="300dp"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintHorizontal_bias="0.243"
          app:layout_constraintLeft_toLeftOf="parent"
          app:layout_constraintRight_toRightOf="parent"
          app:layout_constraintTop_toTopOf="parent"
          app:layout_constraintVertical_bias="0.27"
          app:pencil_loader_stroke="7dp"
          app:pencilloader_color="#000"
          app:pencil_loader_animation_duration="3000"
          />

You can pass loader color , loader animation duration and stroke according to your need.

you can call showProgress() method to display the loader and hideProgress() method to hide the loader.

  val PencilLoader = findViewById<PencilLoader>(R.id.pencil)
  PencilLoader.showProgress()
  PencilLoader.hideProgress()

About

Use this pencilLoader for showing custom loader on android dialogs.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages