Skip to content

emreesen27/Android-Nested-Progress

Repository files navigation

Android Nested Progress

Nested Customizable Progress For Anroid

Add this in your root build.gradle file

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

Add this to your module's build.gradle file

dependencies {
  implementation 'com.github.emreesen27:Android-Nested-Progress:v1.0.2'
}

Different Combinations

You can get many different loader by changing the properties.

Usage

  • Add view into your layout file
  <com.sn.lib.NestedProgress
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      app:innerAnimInterpolator="linear"
      app:outerAnimInterpolator="overshoot"
      app:outerLoaderAnimDuration="1500" /> 

Properties

Property Name Type Default Range
innerLoaderStrokeWidth Dimension 4.0F x dp (1.0F - 10.0F ) x dp
outerLoaderStrokeWidth Dimension 4.5F x dp (1.0F -10.0F ) x dp
innerLoaderLength Float 260.0F -
outerLoaderLength Float 320.0F -
innerAnimInterpolator Interpolator overshoot -
outerAnimInterpolator Interpolator lineer -
innerLoaderAnimDuration Integer 1000 -
outerLoaderAnimDuration Integer 1000 -
innerLoaderColor Color D3DEDC -
outerLoaderColor Color 2666CF -
spaceBetweenCircles Dimension 3.0F x dp (1.0F - 10.0F ) x dp