Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

SplitView vertical in ipad

HI,

is there a way to split the window vertically?
I need a window which is split in 2 parts.
The upper one for showing scrolling Images and the lower one for the navigation-buttons like zoom, left, right, content-structure,…

Greets,
ToM

— asked September 29th 2010 by Thomas Wegerer
  • ipad
  • split
  • splitview
  • vertical
0 Comments

2 Answers

  • I do not believe that the implementation of SplitView allows for alternate arrangements. There is a project on github that lets you do it but it's a moot point since you can't use it in Titanium AFAIK.

    I think the solution would be to create your own window with the views as you want them and then handle the orientation by setting orientationModes and hooking the orientationchange event if necessary so you can tweak the layout.

    win.orientationModes = [
        Titanium.UI.PORTRAIT,
        Titanium.UI.UPSIDE_PORTRAIT,
        Titanium.UI.LANDSCAPE_LEFT,
        Titanium.UI.LANDSCAPE_RIGHT,
        Titanium.UI.FACE_UP,
        Titanium.UI.FACE_DOWN
    ];
    
    Ti.Gesture.addEventListener('orientationchange',function(){
    // Do something here to resize.
    });
    
    — answered September 30th 2010 by John McKnight
    permalink
    0 Comments
  • when you are using split view, there are no split window in portrait mode on SDK 1.6.2 but there are additional Property for SDK 1.7.2 and higher.

    showMasterInPortrait

    when it sets to true then split view shows both master and detail windows in portrait view

    — answered October 19th 2011 by Gaurang Chhatbar
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.