Apache License 2.0

项目介绍

MindorksOpenSource/RadialProgressBar 是一个托管在 GitHub 上的开源项目,主要使用 Kotlin 编写,采用 Apache License 2.0 许可证,目前获得 166 个 Star、23 次 Fork。

仓库全名
MindorksOpenSource/RadialProgressBar
开源许可证
Apache License 2.0
Star 数
166
Fork 数
23
未关闭 Issue
3

README 摘要

Radial Progress Bar Radial ProgressBar inspired by Apple Watch OS. It is highly Customisable Preview of Radial Progress Bar Getting Started Step 1. Add the JitPack repository to your Add it in your root build.gradle at the end of repositories: Step 2. Add the dependency Step3. To use this in XML File, use Step 4. Link the XML in Activity File using, thats it and how you can use the RadialProgressView in your…

完整内容见 GitHub 原始 README 或本页 。

常见问题

RadialProgressBar 用什么语言开发?

主要使用 Kotlin 编写,采用 Apache License 2.0 许可证,目前有 166 个 Star。

RadialProgressBar 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 RadialProgressBar 的源码?

可以直接克隆仓库:git clone https://github.com/MindorksOpenSource/RadialProgressBar.git,默认分支为 master;安装与运行步骤见仓库 README。

RadialProgressBar 最近还在维护吗?

仓库最近一次更新为 2020年9月18日,当前有 3 个未关闭 Issue;Star 数为 166,可作为社区活跃度的参考。

关于

Radial ProgressBar inspired by Apple Watch OS. It is highly Customisable

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
215
价值分
106
活跃状态
活跃

语言占比

Kotlin

Release

README

alt text

Radial Progress Bar

Radial ProgressBar inspired by Apple Watch OS. It is highly Customisable

Preview of Radial Progress Bar

Mindorks Mindorks Community License

Getting Started

Step 1. Add the JitPack repository to your 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 {
	        implementation 'com.github.MindorksOpenSource:RadialProgressBar:v1.3'
	}
Step3. To use this in XML File, use
  <com.mindorks.RadialProgressBar
            android:layout_width="200dp"
            android:layout_height="200dp"
            android:id="@+id/progress_view"
            app:useRoundedCorner="true"
            app:innerMaxProgress="100"
            app:outerMaxProgress="100"
            app:centerMaxProgress="100"
            app:isAnimationOn="true"
            app:innerProgress="50"
            app:centerProgress="50"
	    app:hasTwoProgressView="false"
            app:hasOneProgressView="false"
   />

val radialProgressBar = findViewById(R.id.progress_view)

or

RadialProgressBar rpb = findViewById(R.id.progress_view) //if using Java

thats it and how you can use the RadialProgressView in your project.

To Customise it according to your need you can use,
Feature XML Activity (Java/Koltin) Default
Set Start Angle OuterView app:outerProgressStartAngle=“angle” rpb.setStartAngleOuterView(angle) 270
Set Start Angle CenterView app:centerProgressStartAngle=“angle” rpb.setStartAngleCenterView(angle) 270
Set Start Angle InnerView app:innerProgressStartAngle=“angle” rpb.setStartAngleInnerView(angle) 270
Set EmptyProgressColorOuterView app:outerEmptyProgressColor=“color” rpb.setEmptyProgressColorOuterView(color) #F5F5F5
Set EmptyProgressColorCenterView app:centerEmptyProgressColor=“color” rpb.setEmptyProgressColorCenterView(color) #F5F5F5
Set EmptyProgressColorInnerView app:innerEmptyProgressColor=“color” rpb.setEmptyProgressColorInnerView(color) #F5F5F5
Set MaxProgressOuterView app:outerMaxProgress=“Integer” rpb.setMaxProgressOuterView(Integer) 100
Set MaxProgressCenterView app:centerMaxProgress=“Integer” rpb.setMaxProgressCenterView(Integer) 100
Set MaxProgressInnerView app:innerMaxProgress=“Integer” rpb.setMaxProgressInnerView(Integer) 100
Set OuterProgress app:outerProgress=“Integer” rpb.setOuterProgress(Integer) 0
Set CenterProgress app:centerProgress=“Integer” rpb.setCenterProgress(Integer) 0
Set InnerProgress app:innerProgress=“Integer” rpb.setInnerProgress(Integer) 0
Set OuterProgressColor app:outerProgressColor=“color” rpb.setOuterProgressColor(listOfColor) #f52e67
Set CenterProgressColor app:centerProgressColor=“color” rpb.setCenterProgressColor(listOfColor) #c2ff07
Set InnerProgressColor app:innerProgressColor=“color” rpb.setInnerProgressColor(listOfColor) #0dffab
Set Elevation app:hasElevation=“true/false” rpb.hasElevation(true/false) false
Set EmptyProgressBar app:hasEmptyProgressBar=“true/false” rpb.hasEmptyProgressBar(true/false) false
Set Animation app:isAnimationOn=“true/false” rpb.setAnimationInProgressView(true/false) true
Set RoundedCorner app:useRoundedCorners=“true/false” rpb.useRoundedCorners(true/false) true
Set ProgressValues ---- rpb.setProgressValues(int,int,int) ----
Set MaxProgressValues ---- rpb.setMaxProgressValues(int,int,int) ----
Set Only OuterProgress app:hasOneProgressView=“true/false” rpb.setOneProgressView(true/false) false
Set Only Outer and CenterProgress app:hasTwoProgressView=“true/false” rpb.setTwoProgressView(true/false) false
Set Circle Thickness*** app:circleThickness=“float” rpb.setCircleThickness(float) 1f
Set Circle Padding app:circlePadding=“float” rpb.setCirclePadding(float) 10f

**angle = 0/90/180/270

***circleThickness between 0f to 1f

You can also get value related to the RadialProgressView,

Feature Value
Get Outer Progress rpb.getOuterProgress()
Get Inner Progress rpb.getInnerProgress()
Get Center Progress rpb.getCenterProgress()
Get Start Angle OuterProgress rpb.getStartAngleOuterView()
Get Start Angle InnerProgress rpb.getStartAngleInnerView()
Get Start Angle CenterProgress rpb.getStartAngleCenterView()
Get Start Angle OuterProgress rpb.getMaxProgressOuterView()
Get Start Angle InnerProgress rpb.getMaxProgressInnerView()
Get Start Angle CenterProgress rpb.getMaxProgressCenterView()

For Gradient Shade,

 val outerColor = ArrayList<Int>()
        outerColor.add(Color.parseColor("#fbab00"))
        outerColor.add(Color.parseColor("#f5004b"))
        progress.setOuterProgressColor(outerColor)
        

Todo

- If using One progressbar, user can also have an option to display the value in text

If this library helps you in anyway, show your love :heart: by putting a :star: on this project :v:

Check out Mindorks awesome open source projects here

Contributor

评论

暂无评论