Skip to content

SeniorZhai/ScoreBoard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##Inspired by

##Effect

##Usage In your app's build.gradle file,add it to your dependencies:

dependencies {
	compile 'org.seniorzhai.scoreboard:scoreboard:1.0.1'
}

And in your java code

ScoreBoard scoreBoard = (ScoreBoard) findViewById(R.id.startView);
// start animation
scoreBoard.start();
// start animation for percentage
scoreBoard.start(0.9f);
// change number
scoreBoard.change(99);
// set content text
scoreBoard.setText("BBC");

In your XML

<org.seniorzhai.scoreboard.ScoreBoard
        android:id="@+id/startView"
        android:layout_width="200dp"
        android:layout_height="200dp"
        android:layout_alignParentRight="true"
        app:backcolor="#33000000"
        app:contentText=""
        app:forecolor="#FFFFFF"
        app:lineWidth="3dp" />

##Sample app Clone and build this repo in Android Studio to see an example of a sample app.

##Contact SeniorZhai:developer.zhaitao@gmail.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages