百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

RingProgressBar

> 编程语言
开源

材料设计圆形的进度条。

768 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

材料设计圆形的进度条。

RingProgressBar

材料设计圆形进度条,在使用时可以在图像加载和文件上传中进行下载。

屏幕截图

导入

java

 Step 1. Add the JitPack repository to your build file
 Add it in your root build.gradle at the end of repositories:

	allprojects {
		repositories {
			...
			maven { url "https://jitpack.io" }
		}
	}

Step 2. Add the dependency

	dependencies {
	        compile 'com.github.HotBitmapGG:RingProgressBar:V1.2.3'
	}

Maven

java
Step 1.

		
		    jitpack.io
		    https://jitpack.io
		
	

Step 2. Add the dependency

	
	    com.github.HotBitmapGG
	    RingProgressBar
	    V1.2.2
	

导航

  • 自定义属性
    名称 格式 说明
    ringColor color 彩色环
    ringProgressColor color 进度条颜色
    ringWidth dimension 进度环的宽度
    textColor color 文本颜色
    textSize dimension 文本大小
    max 整数 最大进度
    textIsShow boolean 是否显示文本
    样式 笔画与填充 圆形进度样式

使用方法

    1. 在 XML 中
java

    

    
    1. 在代码中
java

  mRingProgressBar = (RingProgressBar) findViewById(R.id.progress_bar);

  // Set the progress bar's progress
  mRingProgressBar.setProgress(progress);
  mRingProgressBar.setOnProgressListener(new RingProgressBar.OnProgressListener()
  {

    @Override
     public void progressToComplete()
     {
         // Progress reaches the maximum callback default Max value is 100
         Toast.makeText(MainActivity.this, "complete", Toast.LENGTH_SHORT).show();
     }
  });

关于我 武汉的一个 Android 开发者。 如果你想和我交朋友,可以关注我的微博。

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Javamaterialprogressbarview

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言