Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2016
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. public Path pointRight(Rect bounds) {
  2. final Rect newRect = new Rect(bounds.left, bounds.top, bounds.right - padding, bounds.bottom);
  3. newRect.inset(strokeWidth / 2, strokeWidth / 2);
  4. path = new Path();
  5. path.moveTo(newRect.left, newRect.top);
  6. path.lineTo(newRect.right, newRect.top);
  7.  
  8. path.lineTo(newRect.right, newRect.top + arrowPosition);
  9. path.lineTo(newRect.right + padding, newRect.top + arrowPosition + arrowHeight / 2.0f);
  10. path.lineTo(newRect.right, newRect.top + arrowPosition + arrowHeight);
  11.  
  12. path.lineTo(newRect.right, newRect.bottom);
  13. path.lineTo(newRect.left, newRect.bottom);
  14. path.close();
  15. return path;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement