Giter VIP home page Giter VIP logo

rangeseekbar's Introduction

Attention

New feature 1/21/2019 !!!

Add oneTouchMode for single seekbarMode.No need to drag thumb,just move it by one touch.

New feature 1/17/2019 !!!

Add tick mark text on the top and below of the progress bar.

Usage

Dependencies

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

	dependencies {
	        implementation 'com.github.fa-hessari:RangeSeekBar:TAG'
	}

RangeSeekBar

 <com.jaygoo.widget.RangeSeekBar
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:rsb_mode="single"
        />

New Features

Use these attrs for the new features:

in xml use:

app:rsb_tick_mark_is_from_first_item="false"
app:rsb_tick_mark_is_top_and_below="true"
app:rsb_tick_mark_is_one_touch_mode="true"

or in code use:

rangeSeekBar.setTickMarkTopAndBelow(true, false);
rangeSeekBar.setOneTouchMode(true);

VerticalRangeSeekBar

  <com.jaygoo.widget.VerticalRangeSeekBar
        android:layout_width="50dp"
        android:layout_height="300dp"
        app:rsb_mode="range"
	app:rsb_orientation="right"
        />

VerticalRangeSeekBar rotates RangeSeekBar 90 degrees, and its attribute usage is same as RangeSeekBar .The only difference is the rsb_orientation, it controls the direction of rotation.

Example For New Features

<com.jaygoo.widget.RangeSeekBar
        android:id="@+id/seekbar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:layout_marginEnd="10dp"
        android:layout_marginStart="15dp"
        android:layout_marginTop="20dp"
        android:paddingLeft="10dp"
        android:paddingRight="10dp"
        app:rsb_indicator_height="20dp"
        app:rsb_indicator_padding_left="20dp"
        app:rsb_indicator_padding_right="20dp"
        app:rsb_indicator_text_size="12sp"
        app:rsb_mode="single"
        app:rsb_progress_color="#28369f"
        app:rsb_progress_default_color=#28369f"
        app:rsb_progress_height="4dp"
        app:rsb_thumb_drawable="@drawable/shape_circle"
        app:rsb_thumb_size="30dp"
        app:rsb_tick_mark_gravity="center"
        app:rsb_tick_mark_is_from_first_item="false"
        app:rsb_tick_mark_is_one_touch_mode="true"
        app:rsb_tick_mark_is_top_and_below="true"
        app:rsb_tick_mark_mode="other"
        app:rsb_tick_mark_text_array="@array/my_array"
        app:rsb_tick_mark_text_margin="20dp"
        app:rsb_tick_mark_text_size="14sp"
        />

Attributes

If you want to know more attributes's usage , please to see attrs

WIKI

You can know more usage and information from wiki.

Give me a Star

Hope you like RangeSeekBar. Star is the greatest support for me! Thank you !

License

Copyright 2018 JayGoo

Licensed under the Apache License.

rangeseekbar's People

Contributors

jinjiegu avatar thisisnova avatar 7293hq avatar elriczhan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.