All Projects → salmaanahmed → SASlider

salmaanahmed / SASlider

Licence: other
SASlider is lightweight cool looking custom slider control which enables the user to input integer or decimal values with high customizeability. User can select values by inputting in text field above slider, slide the control or tap anywhere on the slider to move it.

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to SASlider

MTCircularSlider
A feature-rich circular slider control written in Swift.
Stars: ✭ 118 (+637.5%)
Mutual labels:  slider, slider-control
Rangeseekbar
A beautiful and powerful SeekBar what supports single、 range、steps、vetical、custom( 一款美观强大的支持单向、双向范围选择、分步、垂直、高度自定义的SeekBar)
Stars: ✭ 2,037 (+12631.25%)
Mutual labels:  slider, slider-range
Hgcircularslider
A custom reusable circular / progress slider control for iOS application.
Stars: ✭ 2,240 (+13900%)
Mutual labels:  slider, slider-range
T System
the moving objects tracking system via two axis camera motion (and as optionally n joint robotic arm) for raspberry pi distributions
Stars: ✭ 17 (+6.25%)
Mutual labels:  slider
roundy
Simple react round slider. Supports touch events.
Stars: ✭ 29 (+81.25%)
Mutual labels:  slider
react-simple-range
🔉 React slider component for inputting a numeric value within a range.
Stars: ✭ 20 (+25%)
Mutual labels:  slider
LocationFetcher
Easy Location fetching for Android apps.
Stars: ✭ 33 (+106.25%)
Mutual labels:  android-lib
visual-goodies
Library for Material Design lists, cards, dialogs, etc
Stars: ✭ 101 (+531.25%)
Mutual labels:  android-lib
scroll-snap-carousel
One more carousel plugin, but using CSS Scroll Snap and for every frameworks!
Stars: ✭ 46 (+187.5%)
Mutual labels:  slider
Image-Slider-View
Slider is android library, which makes you bit more attractive for sliding images. It will be useful for displaying movie casting and crew pics, on-boarding pages etc.
Stars: ✭ 23 (+43.75%)
Mutual labels:  slider
TNSlider
A custom iOS slider that show current value on the thumb
Stars: ✭ 14 (-12.5%)
Mutual labels:  slider
skeleton-carousel
Carousel component. Horizontal and vertical swipe navigation
Stars: ✭ 31 (+93.75%)
Mutual labels:  slider
cordova-spotify-oauth
🔐 Easy Spotify authentication for Cordova / PhoneGap apps
Stars: ✭ 15 (-6.25%)
Mutual labels:  android-lib
AORangeSlider
AORangeSlider is a custom UISlider with two handlers to pick a minimum and a maximum range.
Stars: ✭ 82 (+412.5%)
Mutual labels:  slider
react-carousel-minimal
React.js Responsive Minimal Carousel
Stars: ✭ 76 (+375%)
Mutual labels:  slider
range-slider
Customizable slider (range) component for JavaScript with no dependencies
Stars: ✭ 26 (+62.5%)
Mutual labels:  slider
LimitlessUI
Awesome C# UI library that highly reduced limits of your application looks
Stars: ✭ 41 (+156.25%)
Mutual labels:  slider
slider-manager
simple wrapper to create sliders focused on animations
Stars: ✭ 28 (+75%)
Mutual labels:  slider
vue-piece-slider
animated slides in a fragmented look 🐞🌳✡️📐
Stars: ✭ 95 (+493.75%)
Mutual labels:  slider
slither-slider
A Vue JS slider that slides whatever you throw at it
Stars: ✭ 36 (+125%)
Mutual labels:  slider

SASlider

Description

SASlider is lightweight cool looking custom slider control which enables the user to input integer or decimal values with high customizeability. User can select values by inputting in text field above slider, slide the control or tap anywhere on the slider to move it.



Demonstration

Multiple ways to input values into the slider.



Installation

SASlider can be installed using Maven, Gradle, or manually.

Maven

Step 1. Add the JitPack repository to your build file

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

Step 2. Add the dependency

<dependency>
    <groupId>com.github.salmaanahmed</groupId>
    <artifactId>SASlider</artifactId>
    <version>0.1</version>
</dependency>

Gradle

Step 1. Add the JitPack repository to your build file

allprojects {
    repositories {
      ...
      maven { url 'https://jitpack.io' }
    }
}

Step 2. Add the dependency

dependencies {
  compile 'com.github.salmaanahmed:SASlider:0.1'
}

Manual Installation

If you prefer not to use either of the above mentioned dependency managers, you can integrate SASlider into your project manually by adding the files contained in the java folder to your project.

Getting Started

Using XML

You can use SASlider in XML as following

<sasliderdemo.salmaan.ahmsal.com.saslider.SASlider
    android:layout_width="match_parent"
    android:layout_height="100dp"
    android:layout_marginBottom="50dp"
    app:layout_constraintTop_toTopOf="parent"
    app:circleColor="@android:color/darker_gray"
    app:defaultValue="150"
    app:editTextBorderColor="@color/colorGrey"
    app:isDecimal="false"
    app:maxValue="300"
    app:minValue="0"
    app:criticalColor="@color/darkRed"
    app:upperThreshold="200"
    app:lowerThreshold="100"
    app:sliderColor="@color/darkGreen" />

High customizeability allows developers to have desired color of circles, slider thumb, edit text border and color of thumb when slider value is critical i.e. beyond the defined thresholds. Developers can set the slider type to decimal or integer. Set min max range and also the critical thresholds of both upper and lower bounds.

Using Kotlin

You can create the slider programatically as well, see the example below.

  val slider = SASlider(this@MainActivity)
  slider.sliderColor = Color.BLUE
  slider.min = 0.0
  slider.max = 50.0
  slider.criticalColor = Color.BLACK
  slider.isDecimal = true
  linearLayout.addView(slider)

Getting value

Developers can query the current value anytime in the slider using the following variable.

slider.selectedIndex

Contributions and Licence

SASlider is available under the MIT license. See the LICENSE file for more info.

Pull requests are welcome! The best contributions will consist of substitutions or configurations for classes/methods known to block the main thread during a typical app lifecycle.

I would love to know if you are using SASlider in your app, send an email to Salmaan Ahmed

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].