Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15417] Feature request to add x, y coordinates to item clickevent in list view...

GitHub Issuen/a
TypeNew Feature
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsclick, event, itemclick, listview, timob
ReporterHenry David Spells III
AssigneeUnknown
Created2013-09-10T05:17:08.000+0000
Updated2018-02-28T20:03:54.000+0000

Description

I would like to be passed the x, y coordinates into the itemclick event (in the same way that the click event passes in x,y coordinates) for a ListView. I want to be able to simulate a custom control by clicking on an item in the ListView and bringing up a transparent window with my control on top of the item that I clicked on. However, I don't know where to place the control if I don't have the x, y coordinates. This is especially difficult if the window scrolls. When I first wrote the bug, I had tested this on iOS and by looking at the document I thought that 'accessoryClicked' was the only field that was not common to both Android and iOS. In the debugger I found out that bindId is not passed in the itemclick event parameters on Android but x and y coordinates are passed in the event. Can I get both bindId and x,y coordinates passed into the event on both platforms? Also, can you update the documentation so that it at least correctly states the parameters being passed in?

Comments

  1. Henry David Spells III 2013-09-12

    When I first wrote the bug, I had tested this on iOS and by looking at the document I thought that 'accessoryClicked' was the only field that was not common to both Android and iOS. In the debugger I found out that bindId is not passed in the itemclick event parameters on Android but x and y coordinates are passed in the event. Can I get both bindId and x,y coordinates passed into the event on both platforms? Also, can you update the documentation so that it at least correctly states the parameters being passed in? As a separate but very related question. Is there an existing mechanism to get the bindId from the x, y coordinates and the ListView / ListItem? I don't want to reinvent the wheel if I don't need to.

JSON Source