Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6566] Android: TableView does not fire event on nested views

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterPrashant Saini
AssigneeAbir Mukherjee
Created2020-06-29T15:21:26.000+0000
Updated2020-06-29T15:21:26.000+0000

Description

Consider a scenario where TableView contains:

30 TableViewSection.

Each TableViewSection has only one TableViewRow (row with vertical layout).

Each TableViewRow contains 7 full-width View (with horizontal layout)

Each full-width View has further 7 sub-views.

Each sub-view has further 1 Label.

This whole scenario is to create a purely Titanium based calendar. Now the problem is that while having this data:

If we click on sub-views (created in step #4) without scrolling down in table, the tableview reports the clicks correctly.

But if we scroll down to the bottom in table, and then go to the top section or wherever at the top, the above step doesn't report clicks on nested views. Only the main TableViewRow is able to fire the click event.

*Note:* It happens randomly, but most of the times it doesn't work if the table-view is added to a view which has left/right/top/bottom paddings. This issue behaves exactly same on device as well. [Here's a video link](https://drive.google.com/file/d/1k0iKM42dMmi_y2jFA7N22nLrZZ23SWEY/view?usp=sharing) and source code is attached for clear understanding. In the video, whenever I am hovering over the green-background labels, assume that I am clicking on them.

Attachments

FileDateSize
TableView Issue.zip2020-06-29T15:19:13.000+00006934

Comments

No comments

JSON Source