[Sugar-devel] prevent screen rotation in a sugar activity?

Erik Blankinship erikb at mediamods.com
Fri Dec 10 16:29:31 EST 2010


Thank you for these suggestions.

It is sometimes a designer's prerogative to present their work in one
format.  Numerous examples are available on the iPhone and android markets.

Is it possible to override or be notified of a rotation signal?  Or is the
answer to really remap the display and input into my software, which seems
unfortunately complex.

"*The following software has been modified from its original version. It has
been formatted to fit this screen."*

On Thu, Dec 9, 2010 at 7:45 PM, James Simmons <nicestep at gmail.com> wrote:

> Erik,
>
> If you use PyGTK to develop your Activity there are Layouts which will
> arrange your controls on the screen to make the best use of the
> available space.  In this way the app is still usable with the screen
> rotated.  In View Slides I detect when the screen dimensions change
> and resize the image I'm displaying.  You might look at the code for
> View Slides to see how I do that (or look at Read SD Comics which does
> the same thing but is simpler).
>
> Screen rotation is a useful feature of the XO.  Your Activity should
> be able to deal with it gracefully.
>
> James Simmons
>
>
> On Thu, Dec 9, 2010 at 8:51 AM, Erik Blankinship <erikb at mediamods.com>
> wrote:
> > Is there a way to prevent a sugar activity from being rotated when there
> is
> > a screen rotation event on an olpc-xo or other hardware which support
> screen
> > rotation?
> > _______________________________________________
> > Sugar-devel mailing list
> > Sugar-devel at lists.sugarlabs.org
> > http://lists.sugarlabs.org/listinfo/sugar-devel
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20101210/621ee79e/attachment.html>


More information about the Sugar-devel mailing list