Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5783] Android: Cannot click to focus on TextField and TextArea

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDuplicate
Resolution Date2018-06-30T12:49:39.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterMuhammad Ahmed Fahad
AssigneeShak Hossain
Created2018-06-27T10:46:34.000+0000
Updated2018-06-30T12:49:40.000+0000

Description

Environment: Ti SDK: 7.3.0.v20180626174550 Android: 8.0.0 Device: Samsung Galaxy S8+ Focusing using the .focus() method works fine For example, use kitchensink-v2 (https://github.com/appcelerator/kitchensink-v2) and use 7.3.0.X Ti.SDK (On kitchensink-v2 the TextArea seems to be working but still cannot click to focus on the TextFields.)

Comments

  1. Sharif AbuDarda 2018-06-28

    Hello, Please compose a sample code and share in here, We will test the issue. Thanks.
  2. Muhammad Ahmed Fahad 2018-06-28

    Please check the kitchensink-v2 app: https://github.com/appcelerator/kitchensink-v2 (Controls -> Text Field) I was able to see the issue happening in it.
  3. Muhammad Ahmed Fahad 2018-06-28

    or just use:
           <Alloy>
               <Window width="Ti.UI.FILL" height="Ti.UI.FILL">
                  <ScrollView width="Ti.UI.FILL" height="Ti.UI.FILL" backgroundColor="red" layout="vertical">
                    <TextArea height="50" width="Ti.UI.FILL" backgroundColor="green"/>
                    <TextField height="50" width="Ti.UI.FILL" backgroundColor="blue"/>
                 </ScrollView>
               </Window>
           </Alloy>
       
    The problem seems to happen when the TextField/TextArea is inside a ScrollView
  4. Muhammad Ahmed Fahad 2018-06-29

JSON Source