Comments (3)
I just implemented this but the drawing doesn't rotate itself, but rather you can rotate the screen. Let me show you:
(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.
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.
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)
- Multi-page drawings HOT 2
- Saving as .png is in reality producing a .jpg, with .png extension only
- Fix the "Show brush size tool"
- App is outdated on F-Droid compared to Google Play HOT 1
- Open screenshot with SimpleDraw HOT 2
- Bug: Rename Conflict Avoidance Logic Breaks File Extensions HOT 2
- Sudden canvas movement when moving with multitouch
- Please make new app for file transfering offline and make a app for document viewing
- Pan. HOT 2
- Consider saving bonus canvas area HOT 1
- Mismatch on rotation (after opening) HOT 1
- App creates file it cannot open HOT 2
- Should 'Undo' undo open file? HOT 2
- Clarify compression artifacts on saved images that user reloads HOT 2
- Oversize action HOT 4
- [BUG] When sharing a drawing it always gets the same name - simple-draw.png
- Support for themed icons HOT 6
- Simple Draw Pro the latest version doesn't start HOT 10
- Add ability to see the zoom level or scale
- crashes opening certain SVG files HOT 1
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 simple-draw.