title: custom made arc shaped seekbar
body: <p>What I am trying to achieve is to make an arc shaped seekbar. I know there are plenty of libraries I could use to achieve this, but I am just trying my hands on custom made views. 
  I have encountered couple of problems:</p>
  
  <ol>
  <li><p>I have a class which extends SeekBar, and I have implemented onDraw and onMeasure methods as well, but I am not able to view that in layout editor in eclipse, here is the code for the custom view class:</p>
  
  <pre><code>package com.custom.android.views;
  
  import android.content.Context;
  import android.graphics.Canvas;
  import android.graphics.Color;
  import android.graphics.Paint;
  import android.graphics.Path;
  import android.graphics.Path.Direction;
  import android.graphics.PathMeasure;
  
  
  import android.util.AttributeSet;
  import android.view.MotionEvent;
  import android.view.View;
  
  import android.widget.SeekBar;
  import android.widget.Toast;
  
  
  
  public class CustomSeekBar extends SeekBar {
  
      public CustomSeekBar(Context context) {
          super(context);
          // TODO Auto-generated constructor stub
  
      }
  
      public CustomSeekBar(Context context, AttributeSet attrs) {
          this(context, attrs,0);
  
      }
  
      public CustomSeekBar(Context context, AttributeSet attrs, int defStyle) {
          super(context, attrs, defStyle);
  
      }
  
      @Override
      public void draw(Canvas canvas) {
          // TODO Auto-generated method stub
          super.draw(canvas);
      }
  
      @Override
      protected synchronized void onMeasure(int widthMeasureSpec,
              int heightMeasureSpec) {
          // TODO Auto-generated method stub
          super.onMeasure(widthMeasureSpec, heightMeasureSpec);
      }
  
  
  }
  </code></pre></li>
  </ol>
  
  <p>Here is my layout xml :</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:paddingBottom="@dimen/activity_vertical_margin"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      tools:context=".MainActivity" &gt;
  
      &lt;com.custom.android.views.CustomSeekBar
           android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:id="@+id/seekBar"/&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <ol>
  <li>If I use canvas class to draw an arc or any shape, would that be a good starting point?</li>
  </ol>
  
  <p>What exactly is wrong with the eclipse adt and how could I use the onDraw method to give shape to that seekbar?</p>