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
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. });
-
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