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

Android: Cannot edit TextField/TextArea while in a ScrollView as of 7.3.0

    Details

    • Story Points:
      3
    • Sprint:
      2018 Sprint 13 SDK, 2018 Sprint 14 SDK

      Description

      Summary:
      As of Titanium 7.3.0 (not released yet), Android's TextField/TextArea view cannot be edited while they're in a ScrollView. When tapping on them, they immediately drop the focus.

      This is not an issue in Titanium 7.2.0. I've confirmed it.

      Steps to reproduce:

      1. Create a classic app with the below code targeting Titanium 7.3.0.
      2. Build and run on Android.
      3. Tap on a TextArea.
      4. Notice that the virtual keyboard does not appear. You are unable to edit it.
      5. Scroll down to the bottom.
      6. Tap on a TextField.
      7. Notice that the virtual keyboard does not appear. You are unable to edit it.

      var window = Ti.UI.createWindow();
      var scrollView = Ti.UI.createScrollView({
      	showVerticalScrollIndicator: true,
      	layout: "vertical",
      	width: Ti.UI.FILL,
      	height: Ti.UI.FILL,
      });
      for (var index = 1; index <= 20; index++) {
      	var row = Ti.UI.createView({
      		layout: "horizontal",
      		width: Ti.UI.FILL,
      		height: Ti.UI.SIZE,
      	});
      	row.add(Ti.UI.createLabel({
      		text: "Row " + index.toString(),
      		left: "5dp",
      	}));
      	var fieldCreator = (index <= 10) ? Ti.UI.createTextArea : Ti.UI.createTextField;
      	row.add(fieldCreator({
      		value: "Welcome to the Appcelerator Platform! The Appcelerator Platform helps you develop cross-platform mobile applications using the Titanium SDK, Alloy, Appcelerator Studio and the Appcelerator CLI, then lets you manage the entire lifecycle of the application with debugging, testing, deploying, crash monitoring and analytic data collection.",
      		hintText: "Hint Text",
      		hintType: Ti.UI.HINT_TYPE_ANIMATED,
      		left: "5dp",
      		right: "5dp",
      		width: Ti.UI.FILL,
      		height: (fieldCreator == Ti.UI.createTextArea) ? "100dp" : Ti.UI.SIZE,
      	}));
      	scrollView.add(row);
      }
      window.add(scrollView);
      window.open();
      

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              ahmed.mohamed20320 Ahmed Mohamed
              Reviewer:
              Gary Mathews
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code