Code example for ArcShape

0
            dwShape[3] = new ShapeDrawable(
            				 new RoundRectShape(outerR, inset,null));
            dwShape[4] = new ShapeDrawable(
            				 new RoundRectShape(outerR, inset,innerR));
            dwShape[5]= new ShapeDrawable(new PathShape(path, 100, 100));
            dwShape[6] = new ShapeDrawable(new ArcShape(45, -270));
            
            SdmakeSweep=new SweepGradient(150, 25,
                new int[] { 0xFFFF0000, 0xFF00FF00, 0xFF0000FF, 0xFFFF0000 }, 
                null); 
            SdmakeLinear=new LinearGradient(0, 0, 50, 50,
                new int[] { 0xFFFF0000, 0xFF00FF00, 0xFF0000FF }, 
                null, Shader.TileMode.MIRROR);
 
            int[] pixels = new int[]{0xFFFF0000, 0xFF00FF00, 0xFF0000FF, 0};
            Bitmap bm = Bitmap.createBitmap(pixels, 2, 2,
                                            Bitmap.Config.ARGB_8888);
            SdmakeTiling=new BitmapShader(bm, Shader.TileMode.REPEAT,
                                        Shader.TileMode.REPEAT);
             
            dwShape[0].getPaint().setColor(0xFFFF0000);