Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1272] Android: ImageView does not support children

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-06-27T20:16:03.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsAndroid
Labelsapi, parity
ReporterBill Dawson
AssigneeIngo Muschenetz
Created2011-04-15T02:48:16.000+0000
Updated2017-06-27T20:16:03.000+0000

Description

Label shows in iPhone, not in Android:

var iv = Ti.UI.createImageView({
  top: 0,
  width: 100,
  left: 0,
  height: 200
});

win.add(iv);

var l = Ti.UI.createLabel({
  left: 0,
  top: 0,
  width: 100,
  height: 40,
  text: 'test'
});

iv.add(l);

Comments

  1. Dustin Hyde 2012-03-20

    Issue Persists. SDK: 1.8.2 githash=59b3a90s, 2.0.0.v20120320000301 Android: V8, Rhino Studio: 2.0.0.201203200828 OS: Snow Leopard Devices Tested: Nexus One 2.2.2, Emulator 2.2, Emulator 2.3.3
  2. Junaid Younus 2012-08-14

    Tested on a Samsung Galaxy S2 using TiSDK 2.2.0v20120814103312, issue still reproducible.
  3. Michael Belkin 2012-08-17

    I'm having this issue as well on simulator and device with 2.1.1 and 2.2 CI.
  4. Lee Morris 2017-06-27

    I am unable to reproduce this issue with the following environment; Pixel (7.1) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170623141152 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source