Home

Awesome

ProgressRoundButton Android Arsenal

A Smooth Download Button with Progress.

Demo

![demo](./img/Oct-27-2016 10-39-17.gif)

Usage

step1

gradle

 dependencies {
     compile fileTree(dir: 'libs', include: ['*.jar'])
     compile 'com.android.support:appcompat-v7:23.0.1'
     compile 'com.xiaochendev.progressroundbtn:library:2.0.0'
 }

step2

you can define the button in xml like this:

<com.xiaochen.progressroundbutton.AnimDownloadProgressButton
        android:id="@+id/anim_btn"
        android:layout_width="match_parent"
        android:layout_height="40dp"
        app:progressbtn_background_color="@android:color/holo_orange_light"
        app:progressbtn_background_second_color="@android:color/holo_green_light"/>

advanced

<com.xiaochen.progressroundbutton.AnimButtonLayout
            android:id="@+id/anim_btn3"
            android:layout_width="match_parent"
            android:layout_height="40dp"
            android:layout_marginTop="40dp"
            app:progressbtn_background_color="@android:color/holo_blue_dark"
            app:progressbtn_background_second_color="@android:color/darker_gray"
            app:progressbtn_enable_gradient="true"
            app:progressbtn_enable_press="true"/>

The Customized properties are in the follow table: git

PropertyFormatDefault
progressbtn_radiusfloathalf of the button height
progressbtn_background_colorcolor#6699ff
progressbtn_background_second_colorcolorColor.LTGRAY
progressbtn_text_colorcolorprogressbtn_background_color
progressbtn_text_covercolorcolorColor.WHITE
progressbtn_enable_pressbooleanfalse
progressbtn_enable_gradientbooleanfalse

The follow picture make a clear explanation:

show

open gradient

gradient

use AnimButtonLayout

shadow

Version

About me

I am a developer in China,If you have any idea about this project,please contact me ,Thank you!

晓晨Android组

这个是我的公众号,如果你有 Android 开发方面问题可以和我一起讨论,我每周或者每两周会发一两篇原创的Android文章,谢谢支持!

xiaochen588189

License

Copyright 2015 cctanfujun

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License 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.