Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-3549

Android: Table View leftImage Sizing Inconsistency with iOS

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Won't Fix
    • Affects Version/s: Release 1.6.2, Release 2.0.1
    • Fix Version/s: None
    • Component/s: Android

      Description

      {html}<div><h1>Problem</h1>
      <p>On Android, the leftImage resizes the row to fit the dimensions
      of the image. But on iOS, the leftImage will resize to fit the row
      (so if the row is 20 pixels tall, the image will resize to be 20
      pixels tall).</p>
      <h1>Solution</h1>
      <p>It would be great if the two platforms behaved the same with
      this property.</p>
      <p>I personally think resizing is better behavior, because it seems
      like a more likely use case to me. I recognize that's highly
      subjective, though, and that there are implications to having
      resized images inside a table view row on Android.</p>
      <h1>Sample Code</h1>
      <p>The following, dropped in an app.js, shows the problem:</p>
      <pre>
      <code class=
      "javascript">var win = Ti.UI.createWindow({ backgroundColor: '#fff' });
      win.add(Ti.UI.createTableView({
      data: [
      { leftImage: 'appicon.png', title: 'One' },
      { leftImage: 'appicon.png', title: 'Two' },
      { leftImage: 'appicon.png', title: 'Three' }
      ]
      }));
      win.open();</code>
      </pre>
      <h1>Tested On</h1>
      <p>Titanium SDK version: 1.6.2 (03/30/11 17:25 0243d42...)<br>
      RESIZES IMAGE on iPhone Simulator 4.2<br>
      RESIZES ROW on Android Samsung Epic 4G 2.2</p>
      <h2>Associated Helpdesk Ticket</h2>
      <p><a href=
      "http://support.appcelerator.com/tickets/TXA-23345-536">http://support.appcelerator.com/tickets/TXA-23345-536</a></p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              ingo Ingo Muschenetz
              Reporter:
              dtoth Dawson Toth
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-3037
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration