Round Corner Progress Bar Library for Android
Colorful progress bar with round corner on progress which you can customized a color and corner radius. A library has two type of progress bar.
- Fix bug on older android version
- Add secondary progress (Thanks! first087)
- Refactor code (Thank! first087)
- Rename attribute
A simple round corner progress bar that can change a color of progress and background and a corner radius in dp unit (Recommended)
A round corner progress bar with a changeable icon on the left of progress bar
Maven
<dependency>
<groupId>com.akexorcist</groupId>
<artifactId>RoundCornerProgressBar</artifactId>
<version>1.1.0</version>
</dependency>
Gradle
compile 'com.akexorcist:RoundCornerProgressBar:1.2.2'
- Round value configurable (recommend dp) for a corner of progress bar
- Color changable for a progress
- Adjust padding range between progress bar and progress or between image icon and progress
- Easy easy and easy to use
Define 'app' namespace on root view in your layout
xmlns:app="http://schemas.android.com/apk/res-auto"Include 'com.akexorcist.roundcornerprogressbar' or 'com.akexorcist.iconroundcornerprogressbar' in your layout
<com.akexorcist.roundcornerprogressbar.RoundCornerProgressBar
android:layout_width="dimension"android:layout_height="dimension"app:rcBackgroundPadding="dimension"app:rcBackgroundRadius="dimension"app:rcBackgroundColor="color"app:rcProgressColor="color"app:rcProgress="integer"app:rcMax="integer" /><com.akexorcist.roundcornerprogressbar.IconRoundCornerProgressBar
android:layout_width="dimension"android:layout_height="dimension"app:rcIconPadding="dimension"app:rcIconSize="dimension"app:rcIconSrc="drawable"app:rcBackgroundPadding="dimension"app:rcBackgroundRadius="dimension"app:rcBackgroundColor="color"app:rcHeaderColor="color"app:rcProgressColor="color"app:rcProgress="integer"app:rcMax="integer" />Progress bar height
android:layout_heightfor RoundCornerProgressBar heightandroid:iconSizefor IconRoundCornerProgressBar height
Public method on RoundCornerProgressBar
voidsetProgressColor(intcolor)
intgetProgressColor()
voidsetBackgroundColor(intcolor)
intgetBackgroundColor()
voidsetMax(floatmax)
intgetMax()
voidsetProgress(floatprogress)
intgetProgress()Public method on IconRoundCornerProgressBar
voidsetProgressColor(intcolor)
intgetProgressColor()
voidsetBackgroundColor(intcolor)
intgetBackgroundColor()
voidsetHeaderColor(intcolor)
intgetHeaderColor()
voidsetMax(floatmax)
intgetMax()
voidsetProgress(floatprogress)
intgetProgress()
voidsetIconImageResource(intresource)
voidsetIconImageBitmap(Bitmapbitmap)
voidsetIconImageDrawable(Drawabledrawable)<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:app="http://schemas.android.com/apk/res-auto"android:layout_height="match_parent"android:layout_width="match_parent" >
<com.akexorcist.roundcornerprogressbar.RoundCornerProgressBar
android:id="@+id/progress_1"android:layout_height="320dp"android:layout_width="40dp"app:backgroundPadding="5dp" />
<com.akexorcist.roundcornerprogressbar.IconRoundCornerProgressBar
android:id="@+id/progress_2"android:layout_height="320dp"android:layout_width="wrap_content"app:backgroundPadding="10dp"app:iconSize="50dp"app:iconPadding="5dp" />
</RelativeLayout>RoundCornerProgressBarprogress1 = (RoundCornerProgressBar) findViewById(R.id.progress_1);
progress1.setProgressColor(Color.parseColor("#ed3b27"));
progress1.setBackgroundColor(Color.parseColor("#808080"));
progress1.setMax(70);
progress1.setProgress(15);
intprogressColor1 = progress1.getProgressColor();
intbackgroundColor1 = progress1.getBackgroundColor();
intmax1 = progress1.etMax();
intprogress1 = progress1.getProgress();
RoundCornerProgressBarprogress2 = (RoundCornerProgressBar) findViewById(R.id.progress_1);
progress2.setProgressColor(Color.parseColor("#56d2c2"));
progress2.setBackgroundColor(Color.parseColor("#757575"));
progress2.setHeaderColor(Color.parseColor("#38c0ae"));
progress2.setMax(550);
progress2.setProgress(147);
progress2.setIconImageResource(anyResource);
progress2.setIconImageBitmap(anyBitmap);
progress2.setIconImageDrawable(anyDrawable);
intprogressColor2 = progress2.getProgressColor();
intbackgroundColor2 = progress2.getBackgroundColor();
intheaderColor2 = progress2.getHeaderColor();
intmax2 = progress2.getMax();
intprogress2 = progress2.getProgress();- Explain new feature from first087
Thai Language : http://www.akexorcist.com/2015/01/round-corner-progress-bar-library.html
Artit Kuiwilai @first087
Copyright 2015 Akexorcist
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.






