All Projects → ziyexiao → RoundProgressBar

ziyexiao / RoundProgressBar

Licence: other
一个自定义的圆形可颜色渐变的ProgressBar

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to RoundProgressBar

Audiowave Progressbar
Lightweight audiowave progressbar for Android
Stars: ✭ 380 (+1087.5%)
Mutual labels:  view, progressbar
Zzhorizontalprogressbar
水平进度条,支持渐变色和二级进度
Stars: ✭ 153 (+378.13%)
Mutual labels:  view, progressbar
Ringprogressbar
A material design circle the progress bar.
Stars: ✭ 789 (+2365.63%)
Mutual labels:  view, progressbar
MultiPartProgressbar
A progressbar which contains different parts of progress.
Stars: ✭ 15 (-53.12%)
Mutual labels:  view, progressbar
Toothyprogress
A polyline determinated ProgressBar written in Kotlin
Stars: ✭ 56 (+75%)
Mutual labels:  view, progressbar
FillProgressLayout
A simple and flexible Fillable Progress Layout written in Kotlin
Stars: ✭ 77 (+140.63%)
Mutual labels:  view, progressbar
android-constraintlayout-demo
Demo usage of various ConstraintLayout features
Stars: ✭ 49 (+53.13%)
Mutual labels:  view
TitleBar
🔥空祖家的标题栏组件
Stars: ✭ 36 (+12.5%)
Mutual labels:  view
TextBanner
搜索栏文字轮播切换控件,京东淘宝头条资讯轮播
Stars: ✭ 35 (+9.38%)
Mutual labels:  view
table-layout
Styleable plain-text table generator. Useful for formatting console output.
Stars: ✭ 18 (-43.75%)
Mutual labels:  view
recycler-adapter
RecyclerView-driven declarative UIs
Stars: ✭ 124 (+287.5%)
Mutual labels:  view
kzmonitor
kafka zookeeper monitor
Stars: ✭ 34 (+6.25%)
Mutual labels:  view
bubble-layout
An Android ViewGroup that displays avatar bubbles... similar to the chat bubbles on Facebook Messenger.
Stars: ✭ 46 (+43.75%)
Mutual labels:  view
android-prefix-suffix-edit-text
EditText with support for non editable prefix and suffix.
Stars: ✭ 36 (+12.5%)
Mutual labels:  view
MessagesView
view for displaying messages similarly to messages iOS system app
Stars: ✭ 16 (-50%)
Mutual labels:  view
DownloadPorgressBar
This is a download progressbar.
Stars: ✭ 19 (-40.62%)
Mutual labels:  progressbar
YoutubeVideoSample
YoutubeVideoSample
Stars: ✭ 176 (+450%)
Mutual labels:  view
react-native-masonry-brick-list
Staggered Or Masonary List View For React Native Written in pure js
Stars: ✭ 24 (-25%)
Mutual labels:  view
GonioView
Android view to represent an angle measurement (Goniometry)
Stars: ✭ 27 (-15.62%)
Mutual labels:  view
echo-template
golang template for echo framework!
Stars: ✭ 39 (+21.88%)
Mutual labels:  view

RoundProgressBar

一个自定义的圆形ProgressBar

效果图

点击查看gif效果图

简单使用

  • Step 1. 添加如下代码至project的build.gradle里:

      allprojects {
      	repositories {
      	...
      	maven { url 'https://jitpack.io' }
          }
      }
    
  • Step 2. 添加依赖

      dependencies {
          implementation 'com.github.ziyexiao:RoundProgressBar:1.0.3'
      }
    
  • step 3.在XML布局文件中添加 RoundProgressBar

        <com.xx.roundprogressbar.RoundProgressBar
                    android:id="@+id/rpb"
                    android:layout_width="200dp"
                    android:layout_height="200dp" />
    
  • step 4.添加代码

       RoundProgressBar rpb = findViewById(R.id.rpb);
       //设置当前进度
       rpb.setCurrentProgress(100);
       //设置最大进度
       rpb.setMaxProgress(100);
    

自定义属性说明

属性 属性说明 类型 默认值
progressArgbColor 是否进行颜色argb变化(如果设置为true的话,则文字颜色与进度条颜色进行argb变化,并且单独给文字或进度条设置颜色将会无效) boolean false
topText 第一行文本 string 体重
topTextSize 第一行文本大小 dimension 16sp
secondTextSize 中间文本文本大小(进度) dimension 16sp
thirdText 第三行文本 string kg
animationDuration 修改当前进度后执行的动画时长 integer 1000ms
currentProgress 当前进度 integer 0
maxProgress 最大进度 integer 100
circleColor 圆环底色 color #FFE4E4E4
circleThickness 圆环宽度 dimension 10dp
progressStartColor 圆弧渐变开始颜色 color #F1E134
progressEndColor 圆弧渐变结束颜色(达到maxProgress) color #F14A34
smallCircleColor 进度小圆的颜色 color #FFFFFF

博客地址: https://blog.csdn.net/ziyexiaoxiao/article/details/82421854

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].