Code example for ArcShape

0
        	} 
             
        } 
        public void drawSlice(int index, int color, Canvas canvas){
        	int start = 30*(index - 1)+ 2;
        	ShapeDrawable currentSlice = new ShapeDrawable(new ArcShape(start, 28));
        	currentSlice.setBounds(0, 0, this.getWidth(), this.getHeight());
        
        	 
        	currentSlice.getPaint().setColor(color);
        	currentSlice.getPaint().setStyle(Paint.Style.FILL);
        	currentSlice.draw(canvas);
        } 
         
        public void clearCanvas(){ 
        	vCanvas.drawColor(BACKGROUND);
        	invalidate();
        } 
         
        public boolean onTouchEvent(MotionEvent event) {
Contextual code suggestions in your IDE  Get Codota for Java