Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Path pointRight(Rect bounds) {
- final Rect newRect = new Rect(bounds.left, bounds.top, bounds.right - padding, bounds.bottom);
- newRect.inset(strokeWidth / 2, strokeWidth / 2);
- path = new Path();
- path.moveTo(newRect.left, newRect.top);
- path.lineTo(newRect.right, newRect.top);
- path.lineTo(newRect.right, newRect.top + arrowPosition);
- path.lineTo(newRect.right + padding, newRect.top + arrowPosition + arrowHeight / 2.0f);
- path.lineTo(newRect.right, newRect.top + arrowPosition + arrowHeight);
- path.lineTo(newRect.right, newRect.bottom);
- path.lineTo(newRect.left, newRect.bottom);
- path.close();
- return path;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement