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;
    } 
 
 
} 
Connect your IDE to all the code out there  Get Codota for Java