Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25819

Android: ScrollView starts at the wrong location if it contains a ListView

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 7.3.0
    • Component/s: Android
    • Environment:
    • Story Points:
      8
    • Sprint:
      2018 Sprint 06 SDK, 2018 Sprint 07 SDK, 2018 Sprint 08 SDK, 2018 Sprint 09 SDK, 2018 Sprint 10 SDK, 2018 Sprint 11 SDK

      Description

      When you have a ListView within a ScrollView on Android, sometimes the scroll view starts around the middle of the screen.

      e.g.

      <Alloy>
      	<Window class="container">
      		<ScrollView backgroundColor="blue" width="Ti.UI.FILL" height="Ti.UI.FILL" layout="vertical">
      			<View backgroundColor="red" width="Ti.UI.FILL" height="471">
      				<Label top="0">Start of the screen</Label>
      			</View>
      			<ListView backgroundColor="yellow" height="347"/>
      		</ScrollView>
      	</Window>
      </Alloy>
      

      However changing the ListView into a normal view seems to fix the issue.

      In addition, there are times where the above window opens up fine. But most of the time it opens up incorrectly.

      Note that this does not happen on iOS.

      Tested on:

      • Samsung S6 (real device) and
      • Nexus 5 emulator (API 19)

      with SDK: Titanium 7.0.2 GA

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              yahya12 Yahya Uddin
              Reviewer:
              Yordan Banev
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-6213
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code