Since there is no resource available so i started with extends seek bar 

import android.content.Context;

import android.graphics.Canvas;

import android.graphics.Color;

import android.graphics.Paint;

import android.util.AttributeSet;

import android.view.MotionEvent;

import android.widget.SeekBar;


public class CircularSeekBar extends SeekBar {

Paint p;


 public CircularSeekBar(Context context) {

super(context);

p = new Paint();


 }


 public CircularSeekBar(Context context, AttributeSet attrs) {

super(context, attrs);

p = new Paint();


 }

public CircularSeekBar(Context context, AttributeSet attrs, int defStyle) {

super(context, attrs, defStyle);

p = new Paint();


 }


 protected void onSizeChanged(int w, int h, int oldw, int oldh) {

super.onSizeChanged(h, w, oldh, oldw);

}


 @Override

protected synchronized void onMeasure(int widthMeasureSpec, 
intheightMeasureSpec) {

super.onMeasure(heightMeasureSpec, widthMeasureSpec);

setMeasuredDimension(getMeasuredHeight(), getMeasuredWidth());

}


 protected void onDraw(Canvas c) {

// c.rotate(270);

// c.translate(-getHeight(), 0);

super.onDraw(c);


 //p.setAntiAlias(false);

//p.setStyle(Paint.Style.FILL);

//p.setColor(Color.RED);


 // RectF rect = new RectF(100, 100, 200, 200);

// canvas.drawRect(rect, paint);

//c.drawCircle(50, 50, 20, p);

//c.drawLine(10, 10, 10, 10 + 15, p);


 }


 @Override

public boolean onTouchEvent(MotionEvent event) {

if (!isEnabled()) {

return false;

}


 switch (event.getAction()) {

case MotionEvent.ACTION_DOWN :

case MotionEvent.ACTION_MOVE :

case MotionEvent.ACTION_UP :

setProgress(getMax() - (int) (getMax() * event.getY() / getHeight()));

onSizeChanged(getWidth(), getHeight(), 0, 0);

break;


 case MotionEvent.ACTION_CANCEL :

break;

}

return true;

}


}

On Thursday, 13 December 2012 14:51:26 UTC+5:30, djhacktor wrote:
>
> have nt worked on it  i started today and lots of ui component are left so 
> it will great help if you can provide right resource this is what i need 
> Reference 
> : 
> https://lh4.ggpht.com/9qL2sQi6XQYBY2pvgsPyObYS3UM42kRw64ve-GacU3jqW0XTEhARkdCLpmYzzhRULk0r
>   
>
>
> On Thursday, 13 December 2012 14:24:43 UTC+5:30, skink wrote:
>>
>>
>>
>> djhacktor wrote: 
>> > @sink can u please give me example or code m stuck and totally confused 
>> > 
>> > 
>>
>> you are stuck? what have you done so far? 
>>
>> pskink 
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to