Skip to content

Custom & highly configurable seek slider with sliding intervals, disabled state and every possible setting to tackle!

License

Notifications You must be signed in to change notification settings

edgar-zigis/LabeledSeekSlider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6523555 · Feb 6, 2025

History

55 Commits
Jan 3, 2024
Feb 6, 2025
Feb 6, 2025
Feb 6, 2025
Jan 3, 2024
Mar 29, 2021
Mar 29, 2021
Jan 3, 2024
Feb 6, 2025
Jan 3, 2024
Mar 29, 2021
Mar 29, 2021
Mar 30, 2021
Jan 3, 2024

Repository files navigation

LabeledSeekSlider Maven Central

Custom & highly configurable seek slider with sliding intervals, disabled state and every possible setting to tackle!

Minimum target SDK: 21

alt text

Gradle

Make sure you have Maven Central included in your gradle repositories.

allprojects {
    repositories {
        mavenCentral()
    }
}
implementation 'com.bio-matic:labeledseekslider:1.3.3'

Usage

<com.zigis.labeledseekslider.LabeledSeekSlider
    android:id="@+id/seekSlider"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:lss_activeTrackColor="#FF2400"
    app:lss_bubbleOutlineColor="#E8E8E8"
    app:lss_bubbleValueTextColor="#1A1A1A"
    app:lss_bubbleValueTextFont="@font/ttnorms_bold"
    app:lss_bubbleValueTextSize="14sp"
    app:lss_defaultValue="550"
    app:lss_hideRangeIndicators="false"
    app:lss_inactiveTrackColor="#E8E8E8"
    app:lss_isDisabled="false"
    app:lss_limitValue="850"
    app:lss_limitValueIndicator="Max"
    app:lss_maxValue="1000"
    app:lss_minValue="100"
    app:lss_rangeValueTextColor="#9FA7AD"
    app:lss_rangeValueTextFont="@font/ttnorms_regular"
    app:lss_rangeValueTextSize="12sp"
    app:lss_slidingInterval="50"
    app:lss_thumbSliderBackgroundColor="#FFFFFF"
    app:lss_thumbSliderDrawable="@drawable/ic_thumb_slider"
    app:lss_thumbSliderRadius="12dp"
    app:lss_title="Amount"
    app:lss_titleTextColor="#9FA7AD"
    app:lss_titleTextFont="@font/ttnorms_regular"
    app:lss_titleTextSize="12sp"
    app:lss_trackHeight="4dp"
    app:lss_unit=""
    app:lss_unitPosition="back"
    app:lss_vibrateOnLimitReached="true"
    app:lss_hideBubble="false" />

if you wish to skip certain values, you can set them programatically

seekSlider.valuesToSkip = listOf(4, 6, 10)

Remarks

At the moment wrap_content height configuration falls back to 98dp, so if you have increased default dimensions, you will also need to increase height param.

About

Custom & highly configurable seek slider with sliding intervals, disabled state and every possible setting to tackle!

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages