Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5570] TextFeild in Scrollview / View not working as expected in some of Andorid versions

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionWon't Fix
Resolution Date2018-03-16T21:57:39.000+0000
Affected Version/sAppcelerator Studio 4.3.0
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterBhushankumar pawar
AssigneeShak Hossain
Created2018-02-06T05:46:21.000+0000
Updated2018-03-16T21:57:40.000+0000

Description

Textfeilds are not working on some the android device as expected. A keyboard is not coming up and as developer we are not able to trace out focus event is fired or not. Tested on Nexus 6P( Android - 8.0) Samsung S4( Android- 5.0.1) var window = Ti.UI.createWindow(); var productLabelOuterView = Ti.UI.createView({ width : "90%", height : "60dp", backgroundColor : "yellow" }); var productLabel = Ti.UI.createLabel({ height : "80%", left : "2%", right : "48%", font : { fontSize : "14dp", fontFamily : "Metropolis-Regular" }, color : "#333333", text : "test", }); var valueTextField = Ti.UI.createTextField({ height : "80%", left : "50%", right : "7dp", color : "#666666", font : { fontFamily : "Metropolis-Regular", fontSize : "13dp" }, textAlign : "right", autocorrect : false, backgroundColor : "transparent", keyboardType : Titanium.UI.KEYBOARD_TYPE_DECIMAL_PAD, returnKeyType : Titanium.UI.RETURNKEY_NEXT, hintText : "enter value", hintTextColor : "#888888", backgroundColor : "red" }); productLabelOuterView.add(productLabel); productLabelOuterView.add(valueTextField); window.add(productLabelOuterView); window.open();

Comments

  1. Mostafizur Rahman 2018-02-06

    Hello [~bpawar], Thanks for sharing with us. Can you please use latest SDK 7.0.1.GA and let us know how it goes.
  2. Mostafizur Rahman 2018-02-14

    Hello [~bpawar], Just passing a followup here.Are you able to get that sorted out?  Please let us know if you need more help with this issue. Regards
Axway Appcelerator Support
  3. Sharif AbuDarda 2018-02-17

    Hello, Get back to us on SDK 7.0.1.GA test result, Explaining the expected behavior and the received one. Thanks.
  4. Fabian Martinez 2018-02-21

    I'm having the same issue with Ti 6.3.0.GA on some Android devices, but it is not OS version dependent. It works fine on 5.0.1 Huawei device but doesn't work on a 5.0.1 Samsung J2 Prime. It seems that the textfield is not getting the touch when you tap on the screen. I see this on the console every time I tap a textfield and it doesn't get focus: [INFO] I/InputDispatcher( 2006): Delivering touch to : action: 0x0, toolType: 1 I can confirm that it does work on Ti 7.0.2 on the devices I could test. It'd be great to have a workaround for 6.3.0. Thanks
  5. Sharif AbuDarda 2018-02-21

    Hello, If this works on the latest version, Your best bet is to build the app with the latest version. Thanks.

JSON Source