-
-
Notifications
You must be signed in to change notification settings - Fork 322
java.lang.IllegalArgumentException: path must be convex #11
Comments
have you try on the new version ? |
@florent37, I've tried it. It seems (and it's pretty obvious) that if your view is too small for the angle of the diagonal path to be convex then this error gets thrown. I wouldn't mind that much considering that if the user wants the layout to be of 50dp then he/she will have to reduce the angle accordingly. In other words: You CAN'T have a rectangle of 5cm (h) x 50cm (w) and expect to trace a diagonal of 75 degrees from top right corner to bottom left corner. |
@florent37 yeap, I also tried it |
@onuryurtturk I understand that, but this is not certainly an issue. This library's idea is to allow you to have a diagonal cut that goes from corner to corner. If you refer to the picture I uploaded in my previous answer you'll see why the exception is being thrown... that's pretty much what you are trying to achieve and that's not the main purpose of this library. |
try with . 1.0.9 compile 'com.github.florent37:diagonallayout:1.0.9' |
When I change height of diagonalLayout on xml, app is crashing. Just I can set 250dp.
Any solution?
The text was updated successfully, but these errors were encountered: