OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Screen Rotation Behavior, How should an app handle it?
marshmn
post Dec 16 2004, 05:45 AM
Post #1





Group: Members
Posts: 69
Joined: 18-November 04
From: Watford, UK
Member No.: 5,508



Hi,

I don't yet own a Z, though I'm thinking of getting a C860 in the new year. I am already however starting to think about writing apps for it.

One thing that I wondered about was how best to handle screen rotation. It would seem to me sensible that when in landscape mode you might want to have a completely different layout than in portrait mode. Is this something which apps tend to do? In other words, they detect that the screen has been rotated and move the widgets around appropriately.

For example, I could think of times where in portrait mode you might want a combo list drop down at the top of the screen, but then when switching to landscape mode I might want to swap it for a list box down the left hand side. Is this something that people do, or would it seem weird to Z users?

Thanks,
Matt
Go to the top of the page
 
+Quote Post
nilch
post Dec 16 2004, 10:15 AM
Post #2





Group: Members
Posts: 668
Joined: 3-December 03
From: US
Member No.: 1,034



Normally, when you use layout managers in your app designs, the application will automatically resize the objects and re-place tthem accourdingly when you switch portriat/landscape modes.

But a combo box wont become a list box, or any such programatic changes won't take place normally.

In that case you have to trap programatically (I dont know how) if the mode is landscape or portrait and according change your object character and screen design thru your code. I am sure someone more knowledagebel will be able to help you with how to trap the screen mode thu QPE (must be some Qcop message).
Go to the top of the page
 
+Quote Post
marshmn
post Dec 17 2004, 12:35 AM
Post #3





Group: Members
Posts: 69
Joined: 18-November 04
From: Watford, UK
Member No.: 5,508



Thanks for the reply, and you're right, I'll be able to figure out that it's changed from landscape to portrait mode and change the widgets etc, I don't have any problems in understanding that it is possible.

My question really is whether that is the right sort of thing to be doing? Do users expect that sort of behavior? Do other apps do that sort of thing? Or will all users just think that my software is a bit bizarre? smile.gif

Matt
Go to the top of the page
 
+Quote Post
xenophobe
post Dec 17 2004, 05:31 AM
Post #4





Group: Members
Posts: 25
Joined: 29-September 04
From: Ukraine
Member No.: 4,801



IMHO you can detect screen rotation by change screen dimesion (from 480x640 to 640x480).

As for user expectations, I think it depends on application type.
For example media player on SL-6000 change layout on screen rotation. But I doubt what this is good behavior for text editor.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd July 2014 - 01:34 PM