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

Android: Text entry for TextField within ListView not working correctly with Android 5.0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 4.1.0
    • Component/s: Android
    • Environment:

      Titanium 3.5.1 GA
      Android 5.0.0
      Google Nexus 6 with Android 5.0.0 (running on Genymotion)

    • Sprint:
      2015 Sprint 12 SDK

      Description

      Problem

      Text entry for TextField within ListView not working correctly with Android 5.0.

      Test case

      1) Launch KitchenSink app
      2) Navigate to Base UI > Views > List View > Update Items
      3) Focus the first text field and enter text on the on-screen keyboard of the device.
      4) You will be able to to enter 1 or a few characters. After that, no more text entry is possible.
      (Focusing the textfield again and deleting all characters will make the app responsive again)

      Logs

      After executing step 4 above, the log will be filled repeatedly with these messges

      console

      [WARN] :   View: requestLayout() improperly called by android.widget.ListView{e376f24 VFED.VC. ......ID 0,0-1440,2136} during layout: running second layout pass
      [WARN] :   View: requestLayout() improperly called by ti.modules.titanium.ui.widget.TiUIText$TiEditText{1e3c5442 VFED..CL .F....ID 720,18-1440,156 #81} during layout: running second layout pass
      [WARN] :   IInputConnectionWrapper: getTextBeforeCursor on inactive InputConnection
      [WARN] :   IInputConnectionWrapper: getTextBeforeCursor on inactive InputConnection
      

      Discussions

      ((EditText)focusedView).setSelection(cursorPosition);
      

      in TiListView.java in ListViewWrapper onLayout (Lini 161) seems to trigger a layout within a layout in Android 5.0.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hpham Hieu Pham
                Reporter:
                philet Philippe Wueger
                Reviewer:
                Ashraf Abu (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration