circle seekbar or progress with gradient or single color
Android seekbar with arc shape.
Instead of the normal Android seekbar, you can have a seekbar with the shape of arc or circle. All basic parameters are configurable.
Also it colud be used to create a progress bar.
The only file you need is ArcDialSeekBar.java
repositories {
// ...
maven { url "https://jitpack.io" }
}
dependencies {
compile 'com.github.esligh:ArcDialSeekBar:1.0.0'
}
<com.wiget.ext.arcdialseekbar.ArcDialSeekBar
android:id="@+id/arc_sb_view_2"
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_below="@id/arc_sb_view_1"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp"
android:layout_margin="16dp"
app:start_angle="135"
app:end_angle="45"
app:long_mark_len="15dp"
app:short_mark_len="8dp"
app:progress_color="#009688"
app:text_color="#009688"
app:text_size="12sp"
app:inner_divider_count="5"
app:long_mark_count="8"
app:show_text="true"
app:color_mode="single"></com.wiget.ext.arcdialseekbar.ArcDialSeekBar>
Copyright 2015-2019 esligh
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.