Skip to content

Latest commit

 

History

History
49 lines (26 loc) · 1.16 KB

README.md

File metadata and controls

49 lines (26 loc) · 1.16 KB

HeartProgressBar

I've wrote this progress bar for my girlfriend. It's sound strange, I know it :) But feel free to use it in your Android apps. HeratProgressBar - just progress bar looks like heart with nice animation.

Demo

It's demo app with HeartProgressBar.

How to Use it

Just follow all steps below and enjoy this custom view.

Step 1:

Copy HeartProgressBar.java in your project.

Step 2:

Add HeartProgressBar in your XML layour like in example below

<HeartProgressBar
	android:layout_width="wrap_content"
	android:layout_height="wrap_content"
	android:id="@+id/progressBar"/>

Note: width and height of HeartProgressBar should be equals.

Step 3:

Find HeartProgressBar in your layout and start/dismiss it.

HeartProgressBar progressBar = (HeartProgressBar) findViewById(R.id.progressBar);

progressBar.start();

progressBar.dismiss();

In future...

I'll make this .jar library.

Add animation drawing proccess to separate thread for better performance.