title: Create a wider SeekBar
body: <p>I am creating an Android application which controls a radio via tcp/ip commands. I am using a SeekBar to display and control the volume. I rotated the SeekBar 90 degrees so it is now vertical. </p>
  
  <pre><code>public class VerticalSeekBar extends SeekBar {
  
      public VerticalSeekBar(Context context) {
          super(context);
          setThumb(null);
      }
  
      public VerticalSeekBar(Context context, AttributeSet attrs, int defStyle) {
          super(context, attrs, defStyle);
          setThumb(null);
      }
  
      public VerticalSeekBar(Context context, AttributeSet attrs) {
          super(context, attrs);
          setThumb(null);
      }
  
      protected void onSizeChanged(int w, int h, int oldw, int oldh) {
          super.onSizeChanged(h, w, oldh, oldw);
      }
  
      @Override
      protected synchronized void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
          super.onMeasure(heightMeasureSpec, widthMeasureSpec);
          setMeasuredDimension(getMeasuredHeight(), getMeasuredWidth());
      }
  
      protected void onDraw(Canvas c) {
          c.rotate(-90);
          c.translate(-getHeight(), 0);
  
          super.onDraw(c);
      }
  
      @Override
      public void setProgress(int progress) {
          super.setProgress(progress);
          onSizeChanged(getWidth(), getHeight(), 0, 0);
      }
  
      @Override
      public boolean onTouchEvent(MotionEvent event) {
          if (!isEnabled()) {
              return false;
          }
  
          switch (event.getAction()) {
              case MotionEvent.ACTION_DOWN:
                  setProgress(getMax() - (int) (getMax() * event.getY() / getHeight()));
                  onSizeChanged(getWidth(), getHeight(), 0, 0);
              case MotionEvent.ACTION_MOVE:
                  setProgress(getMax() - (int) (getMax() * event.getY() / getHeight()));
                  onSizeChanged(getWidth(), getHeight(), 0, 0);
                  break;
              case MotionEvent.ACTION_UP:
                  setProgress(getMax() - (int) (getMax() * event.getY() / getHeight()));
                  onSizeChanged(getWidth(), getHeight(), 0, 0);
                  break;
              case MotionEvent.ACTION_CANCEL:
                  setProgress(getMax() - (int) (getMax() * event.getY() / getHeight()));
                  onSizeChanged(getWidth(), getHeight(), 0, 0);
                  break;
          }
          return true;
      }
  }
  </code></pre>
  
  <p>Everything works but there is one graphical issue. The width of the SeekBar is pretty small (just like every standard SeekBar). I would like to create a wider SeekBar, is this possible? </p>