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

Android : TextField Click event is not firing with 7.0.X SDK

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 7.0.1
    • Fix Version/s: Release 7.0.2
    • Component/s: Android
    • Labels:
    • Environment:
    • Sprint:
      2018 Sprint 03 SDK

      Description

      Click event is not firing on click of text field using with 7.0.X SDK

      Sample code:

      var window = Ti.UI.createWindow({
      	backgroundColor : 'white'
      });
      var osname = Ti.Platform.osname;
      Ti.App.IS_ANDROID = (osname === 'android');
      if (Ti.App.IS_ANDROID) {
      	window.windowSoftInputMode = Ti.UI.Android.SOFT_INPUT_STATE_ALWAYS_HIDDEN;
      }
      var textfield = Ti.UI.createTextField({
      	color : 'black',
      	hintText : 'sample text',
      	hintTextColor : 'blue'
      });
      textfield.addEventListener('click', function() {
      	Ti.API.info('in text field click');
      });
       
      window.add(textfield);
      window.open();
      

      Test Environment:
      Appcelerator Command-Line Interface, version 7.0.1
      Operating System Mac OS X,Version 10.13.2,Architecture 64bit,
      CPUs 4,Memory 8.0GB
      Node.js Version = 8.9.1
      npm Version = 5.5.1
      Appcelerator CLI 4.2.11
      Core Package 7.0.1
      Titanium CLI 5.0.14
      node-appc Version 0.2.41
      Titanium SDK 7.0.1.GA
      Android Device: Samsung Galaxy J7
      Steps to reproduce: 
      1. Create a sample classic app. 
      2. Replace app.js with the attached app.js file 
      3.Run the app in android device. 
      4.Click on textfield 

      Output: Click event is not firing

      Console logs:

       
      [WARN] :   TextView: TextView does not support text selection. Selection cancelled.
      [INFO] :   I/InputDispatcher( 2853): Delivering touch to : action: 0x0, toolType: 1
      [INFO] :   I/InputDispatcher( 2853): Delivering touch to : action: 0x1, toolType: 1
      [WARN] :   TextView: TextView does not support text selection. Selection cancelled.
      [INFO] :   I/InputDispatcher( 2853): Delivering touch to : action: 0x0, toolType: 1
      [INFO] :   I/InputDispatcher( 2853): Delivering touch to : action: 0x1, toolType: 1
      [WARN] :   TextView: TextView does not support text selection. Selection cancelled.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                mrahman Mostafizur Rahman
                Reviewer:
                Joshua Quick
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • It looks like Backbone Issue Sync is not enabled for your project.

                    Git Source Code