Giter Club home page Giter Club logo

Comments (3)

Lonami avatar Lonami commented on May 25, 2024

I just implemented this but the drawing doesn't rotate itself, but rather you can rotate the screen. Let me show you:

eh

(Sorry for the huge .gif) — I made use of this to save maps into a parcelable, this to save the state of the canvas and this (comment) to make the Path serializable. Should I make a PR yet, or am I missing something?

Edit: Note that if you have the "Save" dialog open and you rotate the screen, it vanishes, but this also sort of obvious because it now is different to save in portrait or in landscape mode.

Edit 2: I found this neat trick to keep the dialog accross orientation changes. Without it, the dialog leaks.

from simple-draw.

tibbi avatar tibbi commented on May 25, 2024

well if theres not too many changes, you can try creating some PR. Dont care about the disappearing dialog, I usually dont care about rotations at all. It just doesnt happen that often to waste too much time on it.

from simple-draw.

Lonami avatar Lonami commented on May 25, 2024

well if theres not too many changes, you can try creating some PR

Okay awesome!

I usually dont care about rotations at all

Neither did I until some of my users found out that some rotation changes involved data loss… I always use the phone in portrait, but the rotation change may happen accidentally! I'll remove that part from the code though.

from simple-draw.

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.