MCPcopy Index your code
hub / github.com/cctanfujun/ProgressRoundButton

github.com/cctanfujun/ProgressRoundButton @v1.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.1 ↗ · + Follow
55 symbols 95 edges 4 files 6 documented · 11%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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 'com.xiaochendev.progressroundbtn:library:1.0.0'
 }
 ```
#### step2 

you can define the button in xml like this:

```xml
<com.xiaochen.progressroundbutton.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: git

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

  • 1.1.0 Fix the bug when setProgressText("something",100),first tiem getProgress() return 0;

  • 1.0.0
    Now you can set text size;
    Add Method removeAllAnim() to avoid memory leak;

  • 0.9.1

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.

Core symbols most depended-on inside this repo

setState
called by 4
library/src/main/java/com/xiaochen/progressroundbutton/AnimDownloadProgressButton.java
setCurrentText
called by 4
library/src/main/java/com/xiaochen/progressroundbutton/AnimDownloadProgressButton.java
setTextSize
called by 4
library/src/main/java/com/xiaochen/progressroundbutton/AnimDownloadProgressButton.java
getProgress
called by 3
library/src/main/java/com/xiaochen/progressroundbutton/AnimDownloadProgressButton.java
initAttrs
called by 1
library/src/main/java/com/xiaochen/progressroundbutton/AnimDownloadProgressButton.java
init
called by 1
library/src/main/java/com/xiaochen/progressroundbutton/AnimDownloadProgressButton.java
setupAnimations
called by 1
library/src/main/java/com/xiaochen/progressroundbutton/AnimDownloadProgressButton.java
calculateDot2AlphaByTime
called by 1
library/src/main/java/com/xiaochen/progressroundbutton/AnimDownloadProgressButton.java

Shape

Method 50
Class 5

Languages

Java100%

Modules by API surface

library/src/main/java/com/xiaochen/progressroundbutton/AnimDownloadProgressButton.java43 symbols
demo/src/main/java/com/xiaochen/demo/MainActivity.java8 symbols
library/src/androidTest/java/com/xiaochen/progressroundbutton/ApplicationTest.java2 symbols
demo/src/androidTest/java/com/xiaochen/demo/ApplicationTest.java2 symbols

For agents

$ claude mcp add ProgressRoundButton \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact