Code example for PathShape

0
 
    private ShapeDrawable mDrawable;
 
    public ColorChip(int color) {
 
        mDrawable = new ShapeDrawable(new PathShape(CHIP_PATH, 10, 10));
        mDrawable.getPaint().setColor(color);
 
 
    } 
 
    public ShapeDrawable drawable() {
 
        return mDrawable;
    } 
 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE