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

Android - touchEnabled on textField is not working - updating value in the controller - js

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Release 7.1.0, Release 8.2.1, Release 8.2.0
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      Tested with the following specs :
      Android: 9.1.0
      Titanium SDK : 8.1.1.GA
      Appceleraror CLI : 7.1.0
      Axway Appcelerator Studio, build: 5.1.3.201907112159

      Description

      Hello. Good afternoon.

      I noticed that when it is set in the tss file the property of touchEnabled with the value of false for a TextField, and then in the controller is modified that property to true, and after that I tried to click click on the TextField, but the keyboard it is not appearing in Android, but in iOS it is working fine.

      XML :

      <Alloy>
      	<Window class="container">
      		<Label id="label" onClick="doClick">Hello, World</Label>
      		<TextField id="txtText" />
      	</Window>
      </Alloy>
      

      JS:

      function doClick(e) {
      	
      	$.txtText.applyProperties({
          	touchEnabled : true
      	});
          
      	Ti.API.info(JSON.stringify($.txtText));	
      };
       
      $.index.open();
      

      TSS:

      ".container": {
      	backgroundColor:"white",
      	layout : "vertical"
      }
      "Label": {
      	width: Ti.UI.SIZE,
      	height: Ti.UI.SIZE,
      	color: "#000"
      }
      "#label": {
      	font: {
      		fontSize: 12
      	},
      	top : 50
      }
      "#txtText" : {
      	touchEnabled : false,
      	width : 200,
      	height : 80,
      	borderColor : "red"
      }
      

      I think for now, I had to implement the property of editable as a workaround, but I need to use touchEnabled property.

      Please let me know whether you have any doubt or question.

      Thanks, and best,
      Francisco Antonio Duran Ramirez.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              antonioduran Francisco Antonio Duran Ramirez
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration