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

Android: ListView itemclick event broken in 3.1.2.GA

    Details

      Description

      Just try to click the ListView in the label area. In 3.1.2.GA it rarely works, on 3.1.1.GA clicks reliably. This bug seems to be dependent upon the item template - I have listviews in my app that are totally unclickable. Sorry to vent about this - Android has several ListView issues, I can work around most of them, but this one is a showstopper. I can't use 3.1.2 until fixed.

      index.xml:

      <Alloy>
      	<Window class="container">
      		<ListView id="lv" top="0dp" defaultItemTemplate="temp1" onItemclick="lvClicked">
      			<Templates>
      				<ItemTemplate name="temp1">
      						<Label bindId="testMsg"/>
      				</ItemTemplate>
      			</Templates>			
      			<ListSection id="ls"/>
      		</ListView>		
      	</Window>
      </Alloy>
      

      index.js:

      function lvClicked() {
      	alert('clicked');
      }
      var data = [];
      for (var i=0; i < 10; i++) {
      	data.push({testMsg: {text: 'try to click on the label area - it will work with 3.1.1 but not on 3.1.2 :('}});
      }
       
      $.ls.setItems(data);
      $.index.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pwang Ping Wang
                Reporter:
                mokesmokes Mark Mokryn
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration