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

Android: ListView shifts when loaded a second time or loaded into a window without a tab


    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 4.0.0
    • Component/s: Android
    • Environment:
    • Story Points:
    • Sprint:
      2014 Sprint 25 SDK


      I've trimmed down the files and code as much as I believe that I can and still maintain the layout / shifting issue. It is very simple compared to the original code.

      1) Create a new alloy project or start with the two tab alloy project
      2) delete all the .js, .xml and .tss files
      3) Add the enclosed index.js, index.tss and index.xml files
      4) Compile and run the project on a device or an emulator
      5) Note that the text in the first list section is lined up with the text in the second list section. emulator64-armScreenSnapz002.png shows how it looks in my app. It will look different in this project because it has been trimmed down to contain static data with only two sections instead of three.
      6) Hit the 'R' button on the top right hand side of the first line of the list view
      7) Note that the name on the first line changes color from red to gray to let you know you clicked.
      8) Note that all the text after the second column has shifted to the left. emulator64-armScreenSnapz003.png shows what it looks like in my app. The output from these files do not contain any graphics of course and text has been substituted.

      The first 2 items on the left side of the list view don't move but the next 4 shift to the left.

      Expected Results:
      The text doesn't move.

      This seems to work properly on all the iOS devices and emulators that I've tried, so I believe that this is an Android only issue somewhere between the Titanium runtime and the Android OS.


        1. emulator64-armScreenSnapz002.png
          63 kB
        2. emulator64-armScreenSnapz003.png
          63 kB
        3. index.js
          2 kB
        4. index.tss
          2 kB
        5. index.xml
          1 kB



            • Assignee:
              sunila Sunila
              mpmiranda Mauro Parra-Miranda
              Hieu Pham
            • Watchers:
              0 Start watching this issue


              • Created:

                Backbone Issue Sync

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

                  Git Source Code