title: How to make double seekbar in android?
body: <p>I am building an android application where the user select the a maximum value by seekbar.</p>
  
  <p>I need another button on the same seekbar so that user can select maximum and minimum value from a particular unique seekbar.</p>
  
  <p>Here is my code of single seek bar -</p>
  
  <pre><code>package com.ui.yogeshblogspot;
  
  public class CustomSeekBarExActivity extends Activity implements OnSeekBarChangeListener{
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
   SeekBar bar=(SeekBar)findViewById(R.id.seekBar1);
   bar.setOnSeekBarChangeListener(this);
  }
  
  @Override
  public void onProgressChanged(SeekBar seekBar, int progress,
          boolean fromUser) {
      // TODO Auto-generated method stub
      TextView tv=(TextView)findViewById(R.id.textView2);
      tv.setText(Integer.toString(progress)+"%");
  
  }
  
  @Override
  public void onStartTrackingTouch(SeekBar seekBar) {
      // TODO Auto-generated method stub
  
  }
  
  @Override
  public void onStopTrackingTouch(SeekBar seekBar) {
      // TODO Auto-generated method stub
  
  }
  }
  </code></pre>
  
  <p>Here is my xml code of seek bar - </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="vertical" 
  android:background="#FFFFFF"&gt;
  
  &lt;TextView
      android:id="@+id/textView1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Choose Your Progress"
      android:textColor="#000000"
      android:textAppearance="?android:attr/textAppearanceMedium" /&gt;
  
  &lt;SeekBar
      android:id="@+id/seekBar1"
      android:layout_width="match_parent"
      android:layout_height="wrap_content" 
      android:layout_gravity="center"
      android:progressDrawable="@xml/progress"
      android:max="100"
      android:thumb="@xml/thumb"/&gt;
  
  &lt;TextView
      android:id="@+id/textView2"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:textColor="#000000"
      android:gravity="center"
      android:layout_gravity="center"
      android:paddingTop="10dp"
      android:textAppearance="?android:attr/textAppearanceMedium" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>