Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. /**
  2.  * @author vivek
  3.  */
  4. //========================================
  5. public class PieChartView extends View{
  6.  
  7.     private final static String[] RColors = {"#448c9b", "#789a98", "#a4a795", "#ac6226", "#ef3c5e", "#b17170", "#9a9a82", "#bda763"};
  8.    
  9.     private RectF rec;
  10.     private Paint p = new Paint();
  11.     private String[][] data = {
  12.             {"Facebook", "20"},
  13.             {"Twitter", "20"},
  14.             {"Whats app", "20"},
  15.             {"Pinterest", "20"},
  16.             {"Baby App", "20"}
  17.     };
  18.     private int d = 0;
  19.     private float textSize = 20f;
  20.    
  21.     //========================
  22.     public PieChartView(Context context, AttributeSet attrs) {
  23.         super(context, attrs);     
  24.     }
  25.  
  26.     //========================
  27.     public PieChartView(Context ctx){super(ctx);}
  28. }