Source link: https://github.com/rezaiyan/LevelProgressBar
With this library we can create a seting on Android with custom slide. For android game we can add this function become a pages preferences
Thanks for rezaiyan
LevelProgressBar
A custom view with circular step progress level
Installtion
Add the dependency to your app build.gradle file:
implementation "ir.alirezaiyan:levelprogressbar:1.0.0"
Usage
Add LevelProgressBar
:
<ir.alirezaiyan.progressbar.LevelProgressBar
android:id="@+id/p1"
android:layout_width="150dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp"
android:layout_height="150dp"
app:spb_background_progress_color="#E22D9D"
app:spb_is_enable="true"
app:spb_unprogress_color="#E6E6E6"
app:spb_stroke_with="10"
app:spb_is_step_progress="true"
app:spb_level="level6"
app:spb_text_level_color="#fff"
app:spb_text_title_color="#040504"/>
License
Copyright 2016 Ali Rezaiyan, Inc. 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.