All Projects → PKLOT → MultiPartProgressbar

PKLOT / MultiPartProgressbar

Licence: other
A progressbar which contains different parts of progress.

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to MultiPartProgressbar

FillProgressLayout
A simple and flexible Fillable Progress Layout written in Kotlin
Stars: ✭ 77 (+413.33%)
Mutual labels:  view, progressbar
Ringprogressbar
A material design circle the progress bar.
Stars: ✭ 789 (+5160%)
Mutual labels:  view, progressbar
RoundProgressBar
一个自定义的圆形可颜色渐变的ProgressBar
Stars: ✭ 32 (+113.33%)
Mutual labels:  view, progressbar
Toothyprogress
A polyline determinated ProgressBar written in Kotlin
Stars: ✭ 56 (+273.33%)
Mutual labels:  view, progressbar
Audiowave Progressbar
Lightweight audiowave progressbar for Android
Stars: ✭ 380 (+2433.33%)
Mutual labels:  view, progressbar
Zzhorizontalprogressbar
水平进度条,支持渐变色和二级进度
Stars: ✭ 153 (+920%)
Mutual labels:  view, progressbar
RxActivityIndicator-Android
A small library that helps you keep track of operations progress. It allows you to show progress bar (indicator) in a convenient way.
Stars: ✭ 12 (-20%)
Mutual labels:  progressbar
AndroidSamples
Android例子----View、指纹、Canvas、RecyclerView、BottomSheet、PopupWindow、Broadcast、Service、Rxjava、Retrofit、Handler等
Stars: ✭ 107 (+613.33%)
Mutual labels:  view
ChartProgressBar-iOS
Draw a chart with progress bar style
Stars: ✭ 84 (+460%)
Mutual labels:  progressbar
kyoto
Golang SSR-first Frontend Library
Stars: ✭ 543 (+3520%)
Mutual labels:  view
Xamarin.BlurView
Dynamic iOS-like blur of underlying Views for Android.
Stars: ✭ 26 (+73.33%)
Mutual labels:  view
Observable
A generic ObservableObject for every property!
Stars: ✭ 41 (+173.33%)
Mutual labels:  view
IndicatorView
IndicatorView Library For Android
Stars: ✭ 41 (+173.33%)
Mutual labels:  view
drag-to-close
Android library that provides a view group which allows to finish an activity by dragging a view.
Stars: ✭ 69 (+360%)
Mutual labels:  view
LovelyView
🔗A view that combines pictures and texts.(一个组合图片和文本的view).
Stars: ✭ 68 (+353.33%)
Mutual labels:  view
cursive-tabs
Tabs for gyscos/cursive views 🖥️
Stars: ✭ 21 (+40%)
Mutual labels:  view
Hyena
鬣狗快速开发库(2018年6月停止维护)
Stars: ✭ 21 (+40%)
Mutual labels:  view
ShadowDrawable
为View 和 ViewGroup 添加阴影效果--Android,Add shadow for single view or viewgroup layout.
Stars: ✭ 22 (+46.67%)
Mutual labels:  view
circlebars
Add circular progress bars and countdown timers easily with circlebars Created by @itaditya. Demo at >
Stars: ✭ 38 (+153.33%)
Mutual labels:  progressbar
nuts
Nuts and bolts for building cross-platform UI (HTML, Flutter, CLI) using Dart. Also screw frameworks (React, Vue, Angular).
Stars: ✭ 12 (-20%)
Mutual labels:  view

MultiPartProgressbar

A progressbar which contains different parts of progress.

preview

Download

implementation 'com.pklotcorp:multi-part-progressbar:$version'

XML

<com.pklotcorp.multipartprogressbar.MultiPartProgressbar
    android:layout_width="300dp"
    android:layout_height="300dp"
    app:icon_radius="20dp"
    app:icon_resource="@drawable/shape_progressbar_icon"
    app:progress_width="10dp" />

Attributes

Attribute Example
icon_resource @drawable/shape_progressbar_icon
icon_radius 20dp
progress_width 10dp

Usage

Setup progress parts

Provide a list of ProgressPart for MultiPartProgressbar via setupProgressParts(List<ProgressPart>):

multiPartProgressbar.setupProgressParts(
            listOf(
                object : ProgressPart() {
                    override fun startColor() = Color.MAGENTA
                    override fun endColor() = Color.RED
                    override fun minValue() = 0
                    override fun maxValue() = 30
                },
                object : ProgressPart() {
                    override fun startColor() = Color.CYAN
                    override fun endColor() = Color.BLUE
                    override fun minValue() = 30
                    override fun maxValue() = 70
                },
                object : ProgressPart() {
                    override fun startColor() = Color.YELLOW
                    override fun endColor() = Color.GREEN
                    override fun minValue() = 70
                    override fun maxValue() = 120
                },
            )
        )

Set progress

Assign progress(0-1) to MultiPartProgressbar:

multiPartProgressbar.setProgress(0.5f)

License

Copyright 2020 PKLOTCORP

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].