zhouzhuo810 / Zzhorizontalprogressbar
Licence: apache-2.0
水平进度条,支持渐变色和二级进度
Stars: ✭ 153
Programming Languages
java
68154 projects - #9 most used programming language
Labels
Projects that are alternatives of or similar to Zzhorizontalprogressbar
MultiPartProgressbar
A progressbar which contains different parts of progress.
Stars: ✭ 15 (-90.2%)
Mutual labels: view, progressbar
Audiowave Progressbar
Lightweight audiowave progressbar for Android
Stars: ✭ 380 (+148.37%)
Mutual labels: view, progressbar
FillProgressLayout
A simple and flexible Fillable Progress Layout written in Kotlin
Stars: ✭ 77 (-49.67%)
Mutual labels: view, progressbar
Ringprogressbar
A material design circle the progress bar.
Stars: ✭ 789 (+415.69%)
Mutual labels: view, progressbar
Toothyprogress
A polyline determinated ProgressBar written in Kotlin
Stars: ✭ 56 (-63.4%)
Mutual labels: view, progressbar
Webpackbar
Elegant ProgressBar and Profiler for Webpack 3 , 4 and 5
Stars: ✭ 1,887 (+1133.33%)
Mutual labels: progressbar
Coordinator Behaviors
Android Library. Behaviors for CoordinatorLayout.
Stars: ✭ 143 (-6.54%)
Mutual labels: view
Sharpview
安卓带有尖角气泡的控件(TextView,ImageView,EditText,Layout),支持渐变色,圆角等自定义属性
Stars: ✭ 137 (-10.46%)
Mutual labels: view
Progresshud
ProgressHUD is a lightweight and easy-to-use HUD for iOS.
Stars: ✭ 2,045 (+1236.6%)
Mutual labels: progressbar
Rxtool
Android开发人员不得不收集的工具类集合 | 支付宝支付 | 微信支付(统一下单) | 微信分享 | Zip4j压缩(支持分卷压缩与加密) | 一键集成UCrop选择圆形头像 | 一键集成二维码和条形码的扫描与生成 | 常用Dialog | WebView的封装可播放视频 | 仿斗鱼滑动验证码 | Toast封装 | 震动 | GPS | Location定位 | 图片缩放 | Exif 图片添加地理位置信息(经纬度) | 蛛网等级 | 颜色选择器 | ArcGis | VTPK | 编译运行一下说不定会找到惊喜
Stars: ✭ 11,567 (+7460.13%)
Mutual labels: progressbar
Radialprogressbar
Radial ProgressBar inspired by Apple Watch OS. It is highly Customisable
Stars: ✭ 141 (-7.84%)
Mutual labels: progressbar
React Spinners
A collection of loading spinner components for react
Stars: ✭ 2,054 (+1242.48%)
Mutual labels: progressbar
Overflow Pager Indicator
Simple paging indicator widget with pager dataset ovewflow effect à la Instagram behavior
Stars: ✭ 136 (-11.11%)
Mutual labels: view
Aachartkit Swift
📈📊📱💻🖥️An elegant modern declarative data visualization chart framework for iOS, iPadOS and macOS. Extremely powerful, supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, areasplinerange, columnrange, bubble, box plot, error bars, funnel, waterfall and polar chart types. 极其精美而又强大的跨平台数据可视化图表框架,支持柱状图、条形图、…
Stars: ✭ 1,962 (+1182.35%)
Mutual labels: view
Android Statefullayout
A custom Android ViewGroup to display different states of screen (CONTENT, PROGRESS, OFFLINE, EMPTY, etc.)
Stars: ✭ 140 (-8.5%)
Mutual labels: view
ZzHorizontalProgressBar
一个高度自定义的水平进度条控件.
Github地址:https://github.com/zhouzhuo810/ZzHorizontalProgressBar
功能简介:
- 1.支持自定义进度颜色;
- 2.支持自定义背景颜色;
- 3.支持自定义背景与进度之间的内间距大小;
- 4.支持自定义最大值和默认进度值;
- 5.支持渐变颜色进度;
- 6.支持二级进度条。
与系统控件相比的优势:属性配置更简单、大小适配更方便。
Gradle:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
implementation 'com.github.zhouzhuo810:ZzHorizontalProgressBar:1.1.1'
What does it look like?
How to use it ?
1.xml
<me.zhouzhuo.zzhorizontalprogressbar.ZzHorizontalProgressBar
android:id="@+id/pb"
android:layout_width="match_parent"
android:layout_height="40dp"
app:zpb_padding="0dp"
app:zpb_pb_color="@android:color/holo_green_dark"
app:zpb_bg_color="@android:color/holo_blue_bright"
app:zpb_max="100"
app:zpb_progress="30"
/>
2.java
final ZzHorizontalProgressBar pb = (ZzHorizontalProgressBar) findViewById(R.id.pb);
//set progress value
pb.setProgress(progress);
//set padding
pb.setPadding(0);
//set background color
pb.setBgColor(Color.RED);
//set progress color
pb.setProgressColor(Color.BLUE);
//set max value
pb.setMax(100);
属性说明:
属性 | 作用 | 类型 |
---|---|---|
zpb_padding | 背景与进度之间的内间距大小 | dimension |
zpb_second_pb_color | 二级进度背景颜色 | color |
zpb_bg_color | 背景颜色 | color |
zpb_pb_color | 进度颜色 | color |
zpb_max | 进度最大值 | int |
zpb_progress | 默认进度值 | int |
zpb_second_progress | 二级进度默认进度值 | int |
zpb_open_gradient | 是否使用渐变色 | boolean |
zpb_show_zero_point | 进度为0时是否显示圆点 | boolean |
zpb_gradient_from | 开始渐变颜色 | color |
zpb_gradient_to | 结束渐变颜色 | color |
zpb_show_second_progress | 二级进度是否显示 | boolean |
zpb_open_second_gradient | 二级进度是否使用渐变色 | boolean |
zpb_second_gradient_from | 二级进度开始渐变颜色 | color |
zpb_second_gradient_to | 二级进度结束渐变颜色 | color |
zpb_show_second_point_shape | 二级进度形状(point,line) | enum |
zpb_show_mode | 显示进度的模式(round,rect,round_rect) | enum |
zpb_round_rect_radius | round_rect模式下圆角的半径 | dimension |
zpb_draw_border | 是否画边框 | boolean |
zpb_border_width | 边框的线宽 | dimension |
zpb_border_color | 边框的颜色 | color |
Fix Records
v1.1.1
- 修复二级进度值为0时也显示一条线的问题;
- 添加了文档注释;
v1.1.0
- zpb_show_zero_point属性,控制进度为0时是否显示圆点;
v1.0.9
- 修复二级进度条单一色时进度设置无效问题;
v1.0.8
- 修复二级进度条单一色时颜色设置无效问题;
v1.0.7
- 修复圆角进度算法缺陷;
v1.0.6
- 添加动态设置边框颜色方法;
v1.0.5
- 添加自定义圆角大小模式;
- 添加zpb_show_mode属性,切换模式;
- 添加zpb_round_rect_radius属性,圆角半径;
- 添加zpb_draw_border属性,是否画边框;
- 添加zpb_border_width属性,边框宽度;
- 添加zpb_border_color属性,边框颜色;
v1.0.4
- 添加矩形进度模式;
- 添加
setOnProgressChangedListener
回调方法;
v1.0.3
- 添加二级进度;
- 添加二级进度渐变;
- 添加二级进度形状;
v1.0.2
- 添加渐变色属性;
v1.0.1
- 修复动态修改背景颜色和进度颜色无效问题;
License
Copyright © zhouzhuo810
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.
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].