Comments (5)
@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.
from diagonallayout.
have you try on the new version ?
from diagonallayout.
@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.
from diagonallayout.
@florent37 yeap, I also tried it
from diagonallayout.
try with . 1.0.9
compile 'com.github.florent37:diagonallayout:1.0.9'
from diagonallayout.
Related Issues (20)
- Not rendering in android studio HOT 1
- NullPointerException on Api23. Help Please HOT 1
- How to implement with collapsing toolbar layout HOT 6
- Diagonal direction HOT 1
- Problem with using layout_scrollFlags
- Bottom Line in DiagonalLayout on Nexus 7 and S HOT 2
- DiagonalLayout doesn't work properly on android 4.+ HOT 1
- Render Problem HOT 2
- Multiple sided diagonal cuts HOT 3
- NullpointerException on dispatchDraw() HOT 2
- Angle value changes in RecyclerView
- Layout is not drawn into canvas HOT 2
- Any type of map is not showed
- namespace prefix unbound error HOT 1
- Rendering Problem
- Rendering Problem
- Elevation issue HOT 4
- Not working on Android 4.1.1 HOT 1
- Should support bottom to top, top to bottom gravity HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diagonallayout.