Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @author vivek
- */
- //========================================
- public class PieChartView extends View{
- private final static String[] RColors = {"#448c9b", "#789a98", "#a4a795", "#ac6226", "#ef3c5e", "#b17170", "#9a9a82", "#bda763"};
- private RectF rec;
- private Paint p = new Paint();
- private String[][] data = {
- {"Facebook", "20"},
- {"Twitter", "20"},
- {"Whats app", "20"},
- {"Pinterest", "20"},
- {"Baby App", "20"}
- };
- private int d = 0;
- private float textSize = 20f;
- //========================
- public PieChartView(Context context, AttributeSet attrs) {
- super(context, attrs);
- }
- //========================
- public PieChartView(Context ctx){super(ctx);}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement