Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5113] Android: TableView is not displayed when added to a ScrollView

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2017-10-06T21:08:48.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, api, scrollview, tableview
ReporterAlan Vaghti
AssigneeIngo Muschenetz
Created2011-08-25T14:49:44.000+0000
Updated2017-10-06T21:08:48.000+0000

Description

1) Create a new project and replace the app.js with the attached app.js 2) Run the project Expected Results: TableView and it's values appears and is scrollable. Actual Results: A blank white screen appears. Notes: Tested in 1.7.2 and the issue existed there as well. It works normally on iPhone. The attached screenshot shows a comparison between the Android and iPhone simulators.

Attachments

FileDateSize
app.js2011-08-25T14:49:44.000+0000904
Screen Shot 2011-08-25 at 2.31.59 PM.png2011-08-25T14:49:44.000+0000271584

Comments

  1. Ivan Skugor 2011-08-26

    Alan, you can define scroll view's height and content height as a temporally workaround. For example, if you define scroll view as:
       var scrollView = Titanium.UI.createScrollView({
       	top:0,
               height:'100%',
           	contentHeight:'100%',
       	showVerticalScrollIndicator:true
       });
       
    you'll see the table view items. Anyway, I'm not sure how table view's scroll functionality can be implemented when it is added to the scroll view. Actually, IMHO, I think it shouldn't be scrollable because scroll view is scrollable.
  2. Joshua Quick 2017-10-06

    Android TableView displays fine within a ScrollView in Titanium 6.0.2. In Titanium 6.2.2, we've added nested scrolling support between a ScrollView and a TableView. - https://github.com/appcelerator/titanium_mobile/pull/9402

JSON Source