Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9419] Android: Tableview in a table row doesn't scroll on Android

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2012-06-25T20:43:11.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sn/a
ComponentsAndroid
LabelsSupportTeam, api, parity
ReporterVarun Joshi
AssigneePing Wang
Created2012-06-06T11:18:55.000+0000
Updated2017-03-24T18:10:07.000+0000

Description

Problem

Building a drop down list that can be attached to the view within a table row works fine on iOS, but on Android the embedded table will not scroll.

Steps to Reproduce

Please run the code below : {noformat} // this sets the background color of the master UIView (when there are no windows/tab groups on it) Titanium.UI.setBackgroundColor('#000'); // // create base UI tab and root window // var windowView = Titanium.UI.createWindow({ title:'TableTest', backgroundColor:'#fff' }); windowView.add(createTable('test table row', 'white', 1)); windowView.open(); function createTable(rowText, color, count) { var tableView = Ti.UI.createTableView({ backgroundColor:color, height: Ti.UI.FILL }); for (i=0; i

Comments

  1. Ping Wang 2012-06-23

    Based on this [comment](https://github.com/android/platform_frameworks_base/blob/master/core/java/android/view/ViewGroup.java#L2042) and this [implementation](https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/AbsListView.java#L3484), the behavior described in the ticket is expected. Scroll events are intercepted and processed by the parent tableView and will not pass to the child tableView. This is how Android handles touch events.
  2. Ping Wang 2012-06-25

    Checked with nested ListView in native Android app and confirmed that this behavior is a native Android behavior. So mark this ticket as Won't Fix.

JSON Source