Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1225] horizontal layout doesn't work in Android

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:55:35.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M05
ComponentsAndroid
Labelsandroid, enterprise, feature, horizontal_layout, layout, release-1.6.0, rplist
ReporterRalf Pfeiffer
AssigneeDon Thorp
Created2011-04-15T02:47:03.000+0000
Updated2011-04-17T01:55:35.000+0000

Description

Horizontal layout doesn't work on Android. It is very difficult to put labels next to each other without horizontal layout.

For the following code the two labels are right on top of each other in the center of the view.

var view= Ti.UI.createView({ width: 'auto', layout: 'horizontal' });
view.add(Ti.UI.createLabel({ text: 'foo' }));
view.add(Ti.UI.createLabel({ text: 'bar' }));

Comments

  1. Metal3d 2011-04-15

    Same here, SDK: 1.3.1

  2. Bill Dawson 2011-04-15

    (from [eeb550cf35e394507476d890042b771f9f2f3b12]) [#1225] First push for horizontal layout support in android https://github.com/appcelerator/titanium_mobile/commit/eeb550cf35e394507476d890042b771f9f2f3b12"> https://github.com/appcelerator/titanium_mobile/commit/eeb550cf35e3...

  3. Bill Dawson 2011-04-15

    (from [1ef086793961881e31b5de3e0c99a20923d0296b]) [#1225 state:fixed-in-qa] support wrapping in horizontal layout https://github.com/appcelerator/titanium_mobile/commit/1ef086793961881e31b5de3e0c99a20923d0296b"> https://github.com/appcelerator/titanium_mobile/commit/1ef086793961...

  4. Bill Dawson 2011-04-15

    QA: test is KS Horiz Layout. On a standard HVGA screen (width 320) in portrait mode, the third label should wrap to the far left. (I believe it does this in iOS)

  5. Don Thorp 2011-04-15

    Verified on G1/1.6 and Nexus One/2.2.1 using build #e1cb22a

JSON Source