Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1045] implement orientationModes for android

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:55:03.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0 M02
ComponentsAndroid
Labelsandroid, feature, orientation
ReporterMarshall Culpepper
AssigneeMarshall Culpepper
Created2011-04-15T02:42:23.000+0000
Updated2011-04-17T01:55:03.000+0000

Description

Comments

  1. Jeff 2011-04-15

    That's bad news, y'all. Android is obviously the red-headed stepchild for y'all.

  2. benmcnelly 2011-04-15

    Shouldn't this be easy? Anyone want to point me at some source code so I can write it myself?

  3. Marshall Culpepper 2011-04-15

    Testcase from #1145 (duplicate):

       var webView = Titanium.UI.createWebView({url:'http://google.com'});
       var win = Titanium.UI.createWindow({fullscreen: true});
       
       win.orientationModes = [
       
       Titanium.UI.PORTRAIT,
       Titanium.UI.UPSIDE_PORTRAIT
       ];
       
       win.add(webView);
       win.open();
       
  4. Marshall Culpepper 2011-04-15

    (from [5275c0b0d7158103c4544343f12ad49d6501283d]) implementation of Window.orientationModes for Android [#1045 state:fixed-in-qa milestone:"Release 1.5.0 M02"] https://github.com/appcelerator/titanium_mobile/commit/5275c0b0d7158103c4544343f12ad49d6501283d"> https://github.com/appcelerator/titanium_mobile/commit/5275c0b0d715...

  5. Marshall Culpepper 2011-04-15

    (from [ca266ee6bf672262eddf6b2b0e8b2143027b9ee5]) better support for orientationModes in android. we now use OrientationEventListener along with setRequestedOrientation to manage when we forcefully override / control orientation. the android API doesn't expose "landscape left", so we won't be able to support it orientationModes until they do. expose the current context in the invocation for dynamic properties instead of the proxy context. fixes and code cleanup for the Gesture module [#2069 state:fixed-in-qa] [#1045] https://github.com/appcelerator/titanium_mobile/commit/ca266ee6bf672262eddf6b2b0e8b2143027b9ee5"> https://github.com/appcelerator/titanium_mobile/commit/ca266ee6bf67...

  6. Thomas Huelbert 2011-04-15

    1.5.0.91838a G2 (2.2)

JSON Source