Code Monkey home page Code Monkey logo

Comments (5)

mradzinski avatar mradzinski commented on May 18, 2024 2

@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.

florent37 avatar florent37 commented on May 18, 2024

have you try on the new version ?

from diagonallayout.

mradzinski avatar mradzinski commented on May 18, 2024

@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.

untitled diagram

from diagonallayout.

onuryurtturk avatar onuryurtturk commented on May 18, 2024

@florent37 yeap, I also tried it

from diagonallayout.

florent37 avatar florent37 commented on May 18, 2024

try with . 1.0.9

compile 'com.github.florent37:diagonallayout:1.0.9'

from diagonallayout.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.