Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement price range seekbar? [closed]

I need to the price range seekbar or slider like I have mentioned in the below image. Any help or sample code will be much appreciated.

Thanks in advance.

Price Range seek bar

like image 877
Farhan Shah Avatar asked Jun 27 '14 05:06

Farhan Shah


People also ask

How do you implement SeekBar?

Step1: Create a new project. After that, you will have java and XML file. Step2: Open your xml file and add a SeekBar and TextView for message as shown below, max attribute in SeekBar define the maximum it can take. Assign ID to SeekBar And TextView.

How can I get SeekBar value?

We can get the current progress value from a Seekbar in java class using getProgress() method. This method returns an integer value. Below code is used to get the current progress value from a Seek bar.

How do I change my SeekBar value?

In Order to the seekBar to Change while you are in the Activity you need to Call the method setProgress(), and pass it a boolean animate value.

What is difference between ProgressBar and SeekBar?

What is difference between ProgressBar and SeekBar? An example of SeekBar is your device's brightness control and volume control. Important Note: Attribute of a SeekBar are same as ProgressBar and the only difference is user determine the progress by moving a slider (thumb) in SeekBar.


1 Answers

Android has no such a view. But you can create custom components based on your need. For your particular case, this one should be fine. For more complex scenario, you can refer this one on github.

like image 78
makata Avatar answered Oct 01 '22 02:10

makata