Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3845354
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T16:13:53+00:00 2026-05-19T16:13:53+00:00

I’m creating a drawing app for tablets and am interested in how to best

  • 0

I’m creating a drawing app for tablets and am interested in how to best handle the drawing canvas, relating to screen orientation changes. The drawing program tracks the user inputs and stores them as vectors, anchored by X,Y coordinates.

The issue relates to the different size of X,Y in portrait/landscape modes. If a user has a canvas that fills the screen (minus notification and title bars), and in portrait mode draws near the bottom of the canvas (say at point 140,460 on a 320×480 screen), when the screen gets flipped to landscape and recreated from the X,Y vectors that I’ve stored, the point at 140,460 is now out of the bounds of the screen (because the screen is now 480×320). Likewise, if they draw points in landscape near the right-hand edge of the screen and flip back to portrait, those points will be out of bounds.

I’ve looked around at solutions to this, and the obvious one seems to be to simply lock the screen down to a specific orientation. A number of the drawing apps I’ve downloaded from the Marketplace handle it this way.

As I’m designing this for a tablet, I’d like to give the user the flexibility to draw as they like, yet maintain some sanity when it comes to the screen bounds, etc.

Ideas I’ve had/tried include:

  • locking to a particular orientation – ok, but hate forcing user to a certain preference
  • locking to a particular orientation and hiding title and notification bars, so the user is simply presented a large blank canvas that they can use as they wish – but hate that the notification bar is hidden

I thought about the possibility of hiding the title bar, showing notification, allowing orientation change and then if the screen is rotated to landscape, rotating the canvas back to portrait, but when the navigation bar moves from what would have been the top in portrait to the right-hand side in landscape, I still get the same X,Y bounding issues, just to a much smaller degree (the width of the notification bar effectively).

Any thoughts on solutions for this?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T16:13:54+00:00Added an answer on May 19, 2026 at 4:13 pm

    Implement scrolling/panning, and let the drawing surface be arbitrarily larger than the dimensions of the parent view. Then it doesn’t matter if the device is in portrait or landscape. You’d just have a view acting as a window on a particular portion of the drawing surface.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Paperclip to handle profile photo uploads in my app. They upload
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I am writing an app with both english and french support. The app requests
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.