[TIMOB-422] HBox and VBox components for mobile
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2011-12-05T05:15:46.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Backlog |
Components | Android |
Labels | android, ios, layout, scrub-invalid |
Reporter | Kevin Whinnery |
Assignee | Don Thorp |
Created | 2011-04-15T02:29:04.000+0000 |
Updated | 2011-12-05T05:15:46.000+0000 |
Description
Marshall and I were talking about this last week and I thought I would throw it in a ticket. Absolute positioning for an entire app may quickly grow a bit onerous as the complexity of the UI increases (or on larger screens, like iPad). It would make a lot of sense to have some kind of auto-aligning component to arrange views horizontally or vertically. Pseudocode for such a component would be:
var vbox = Titanium.UI.createVerticalBox({width:'100%', height:'100%',align:'center'});
vbox.add(view1);
vbox.add(view2);
vbox.add(view3); //all three views are aligned vertically and centered within the vbox view
Titanium.UI.currentWindow.add(vbox);
These components are making it into the sdk with vertical and horizontal layout options - Android still needs horizontal layouts.
Yet another placeholder for layout. We really need to manage these.
rollback wrong update