/GradientSeekBar

Beautiful gradient SeekBar implementation in Android for API 17+

Primary LanguageJavaMIT LicenseMIT

GradientSeekBar

Beautiful gradient SeekBar implementation in Android for API 17+

sample

Install

Gradle

dependencies {
  implementation 'com.amir-p:GradientSeekBar:1.0.0'
}

Maven

<dependency>
  <groupId>com.amir-p</groupId>
  <artifactId>GradientSeekBar</artifactId>
  <version>1.0.0</version>
  <type>pom</type>
</dependency>

Usage

<com.amir_p.GradientSeekBar.GradientSeekBar
    android:layout_width="300dp"
    android:layout_height="150dp"
    android:layout_centerInParent="true"
    app:progressEndColor="#01579B"
    app:progressStartColor="#311B92"
    app:title="GradientSeekBar"
    app:titleTextSize="32sp"
    app:value="1" />

Style

<style name="GradientSeekBarStyle">
    <item name="progressEndColor">#01579B</item>
    <item name="progressStartColor">#311B92</item>
    <item name="titleTextSize">32dp</item>
    <item name="titleGravity">center</item>
    <item name="cornerRadius">32dp</item>
</style>