Skip to content

Conversation

@m1ga
Copy link
Contributor

@m1ga m1ga commented Jul 25, 2025

On iOS you use $.lst_open.deselectItem(0, e.itemIndex) to deselect a clicked item. This method is not needed on Android but also not available in the SDK so you have to add an if OS_IOS all the time.

This PR will just add an empty method to the Android ListView so you can remove the if OS_IOS statement.

@prashantsaini1
Copy link
Contributor

It would be better to trigger the automatic deselection of a ListItem for iOS in the SDK itself as majority of the Ti apps use deselectItem on iOS anyways. It would also make the UX same on Android/iOS by showing a touch-ripple effect on item click and automatically fading it away.

@hansemannn
Copy link
Collaborator

For parity with the current iOS implementation, this is the correct way. Changing the default behavior could be inside future versions then. As it was not requested so far, it seems like low prio though.

@m1ga
Copy link
Contributor Author

m1ga commented Oct 3, 2025

$.listView.deselectItem? is the better solution here 😄 Forgot to close this.

@m1ga m1ga closed this Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants