# AndroidProgressButton a button with progress ![image](https://github.com/weidongjian/AndroidProgressButton/raw/master/art/device-2015-07-16-102914.gif) **使用方法** - 在项目的build.gradle中添加如下代码 ``` dependencies { compile 'cn.weidongjian.android:progress-button:0.2' } ``` - 在xml中引用该控件: ``` ``` - 在activity中设置各种效果: ``` private ProgressButton button; button = (ProgressButton) findViewById(R.id.button); button.startRotate();\\添加并开始旋转progressBar button.animError();\\显示错误符号 button.animFinish();\\显示正确符号 button.removeDrawable();\\移除progressBar ``` bugs: 目前button的layout属性不可以为MatchParent,不然drawable会跑到最左边 welcome comment