TwoLineSeekBar

Introduction: android library TwoLineSeekBar
More: Author   ReportBugs   
Tags:

android library TwoLineSeekBar

Demo

Project

Icon Name Link Google Play
CamDoc - Document Scanner, PDF Scanner App 2018

Download

  • Step 1. Add it in your root build.gradle at the end of repositories:
      allprojects {
          repositories {
            ...
            maven { url 'https://jitpack.io' }
          }
      }
    
  • Step 2. Add the dependency
      dependencies {
          compile 'com.github.hoanganhtuan95ptit:TwoLineSeekBar:1.0'
      }
    

Using

  • xml

    <com.hoanganhtuan95ptit.library.TwoLineSeekBar
        android:id="@+id/twoLine"
        android:layout_width="200dp"
        android:layout_height="200dp"
        app:high_color="#FFE325"
        app:line_color="#FFFFFF"
        app:nail_color="#FFE325"
        app:thumb_color="#FFE325"
        app:line_width="4dp"
        app:nail_radius="3dp"
        app:nail_stroke_width="6dp"
        app:thumb_radius="6dp"
        />
  • java
    TwoLineSeekBar twoLineSeekBar = findViewById(R.id.twoLine);
    twoLineSeekBar.setOnSeekChangeListener(new TwoLineSeekBar.OnSeekChangeListener() {
            @Override
            public void onSeekChanged(float value, float step) {

            }

            @Override
            public void onSeekStopped(float value, float step) {

            }
        });
Android 开发经验分享
随手点击下面广告支持本站吧
 
Android 开发经验分享