Skip to content

chenli3238/progressbutton

Repository files navigation

ProgressRoundButton Android Arsenal

A Smooth Download Button with Progress.

Demo

demo

Usage

step1

gradle

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

step2

you can define the button in xml like this:

<com.js.mylibrary.AnimDownloadProgressButton
        android:id="@+id/anim_btn"
        android:layout_width="match_parent"
        android:layout_height="40dp"
        app:progressbtn_backgroud_color="@android:color/holo_orange_light"
        app:progressbtn_backgroud_second_color="@android:color/holo_green_light"/>

the Customized properties are in the follow table:

Property Format Default
progressbtn_radius float half of the button height
progressbtn_backgroud_color color #6699ff
progressbtn_backgroud_second_color color Color.LTGRAY
progressbtn_text_color color progressbtn_backgroud_color
progressbtn_text_covercolor color Color.WHITE

The follow picture make a clear explanation:

show

Version

  • 0.9.1 Compatible with Android 4.0

About me

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

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.

About

带进度条的button按钮

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages