If you’re looking to make VerticalSeekbar in Android then here is the complete implementation of verticalSeekbar in Android
VerticalSeekBar
Vertical SeekBar class which supports Android 4.x – 9.x.
Screenshots
Target platforms
- from Android 4.0.x (IceCreamSandwich)
- to Android 9.x (Pie)
Latest version
- Version 1.0.0 (September 25, 2018)
Getting started
This library is published on Maven Centeral. Just add these lines to build.gradle
.
repositories { + mavenCentral() } dependencies { + implementation 'com.h6ah4i.android.widget.verticalseekbar:verticalseekbar:1.0.0' }
Usage
Layout XML
<!-- This library requires pair of the VerticalSeekBar and VerticalSeekBarWrapper classes --> <com.h6ah4i.android.widget.verticalseekbar.VerticalSeekBarWrapper android:layout_width="wrap_content" android:layout_height="150dp"> <com.h6ah4i.android.widget.verticalseekbar.VerticalSeekBar android:id="@+id/mySeekBar" android:layout_width="0dp" android:layout_height="0dp" android:splitTrack="false" app:seekBarRotation="CW90" /> <!-- Rotation: CW90 or CW270 --> </com.h6ah4i.android.widget.verticalseekbar.VerticalSeekBarWrapper>
NOTE: android:splitTrack="false"
is required for Android N+.
Java code
SeekBar seekBar = (SeekBar) findViewById(R.id.mySeekBar); ...