So, I was able to answer it myself ... I used the paths to create the drawings, and then stitched them together to create a parallelogram.
public Drawable createThumbDrawable(boolean checked){ Path path = new Path(); path.moveTo(0, 0); path.lineTo(1, 0); path.lineTo(1, 1); path.lineTo(0, 1); path.close(); PathShape shape = new PathShape(path, 1, 1); ShapeDrawable drawable = new ShapeDrawable(shape); if (checked){ drawable.getPaint().setColor(Color.CYAN); } else { drawable.getPaint().setColor(Color.BLACK); } mThumbLeftDrawable = createLeftThumbDrawable(checked); mThumbRightDrawable = createRightThumbDrawable(checked); return drawable; } public Drawable createLeftThumbDrawable(boolean checked){ Path path = new Path(); path.moveTo(0, 25); path.lineTo(25, 0); path.lineTo(25, 25); path.close(); PathShape shape = new PathShape(path, 25, 25); ShapeDrawable drawable = new ShapeDrawable(shape); if (checked){ drawable.getPaint().setColor(Color.CYAN); } else { drawable.getPaint().setColor(Color.BLACK); } return drawable; } public Drawable createRightThumbDrawable(boolean checked){ Path path = new Path(); path.moveTo(0,0); path.lineTo(25, 0); path.lineTo(0, 25); path.close(); PathShape shape = new PathShape(path, 25, 25); ShapeDrawable drawable = new ShapeDrawable(shape); if (checked){ drawable.getPaint().setColor(Color.CYAN); } else { drawable.getPaint().setColor(Color.BLACK); } return drawable; } public void setChecked(boolean checked) {
source share