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

Android: Tapping right-aligned TextField not always receiving focus as of 6.2.2

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 6.2.2
    • Fix Version/s: Release 7.0.1
    • Component/s: Android
    • Labels:
    • Environment:

      Titanium SDK 6.3.0 GA

    • Story Points:
      5

      Description

      Problem:

      In a right aligned TextField (2nd and last in example) it is difficult to select the text by clicking in the the TextField area.

      Testdevice:
      HTC A9 (Android 7)

      SDK Versions

      • 6.2.1.GA working
      • 6.2.2.GA+ not working

      This PR: https://github.com/appcelerator/titanium_mobile/pull/9433 was between 6.2.1 and 6.2.2 so it might give a hint.

      Example

      var win = Ti.UI.createWindow({
      	backgroundColor: '#fff',
      	layout: "vertical"
      });
       
      var tf1 = Ti.UI.createTextField({
      	width: Ti.UI.FILL,
      	top: 10,
      	height: 40,
      	borderColor:"#000",
      	borderWidth:1,
      	bottom: 10
      });
      var tf2 = Ti.UI.createTextField({
      	width: Ti.UI.FILL,
      	top: 10,
      	height: 40,
      	borderColor:"#000",
      	borderWidth:1,
      	bottom: 10,
      	textAlign:Ti.UI.TEXT_ALIGNMENT_RIGHT
      });
      var tf3 = Ti.UI.createTextField({
      	width: Ti.UI.FILL,
      	top: 10,
      	height: 40,
      	borderColor:"#000",
      	borderWidth:1,
      	bottom: 10,
      	textAlign:Ti.UI.TEXT_ALIGNMENT_RIGHT
      });
       
      win.add(tf1);
      win.add(tf2);
      win.add(tf3);
      win.open();
      

      Additional info by Joshua Quick

      I'm able to reproduce this issue on an Android 7.1 Pixel XL with right-aligned TextFields, but not left-aligned or center-aligned TextFields. Also, I'm NOT able to reproduce this issue with right-aligned TextFields on an Android 5.0 Moto G or Android 4.1 Galaxy Nexus. Hmm... this requires further investigation.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                michael Michael Gangolf
                Reviewer:
                Gary Mathews
                Tester:
                Abir Mukherjee
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code