Skip to content

mirshahbazi/Loading

Repository files navigation

Loading

ball loading view for android

Hero Image

API

Using with gradle

  • Add the JitPack repository to your root build.gradle:
repositories {
    maven { url "https://jitpack.io" }
}
  • Add the dependency to your sub build.gradle:
		dependencies {
	        compile 'com.github.mirshahbazi:Loading:-SNAPSHOT'
	}

Using with maven

  • Add the JitPack repository to your build file
	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>
  • Add the dependency
 	<dependency>
       <groupId>com.github.mirshahbazi</groupId>
       <artifactId>Loading</artifactId>
       <version>master-SNAPSHOT</version>
   </dependency>

How to use:

Xml

Add this code to your xml layout:

<loading.mam.com.mamloadingview.MAMBallView
    android:id="@+id/metaball"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_centerHorizontal="true"/>

Java

        
 // and in your activity or fragment add this :
  
    mamBallView = (MAMBallView) this.findViewById(R.id.metaball);
    
    //for change the color use this:
    
     mamBallView.SetColor(Color.GREEN);
    
    //for change the paint mode use this:
    
      mamBallView.setPaintMode(0);
      

About

ball loading view for android

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages