{ "id": "91923", "key": "TIMOB-9156", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-05-22T17:11:30.000+0000", "created": "2012-05-16T14:55:09.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam", "api", "parity" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:28:33.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h6.Issue\r\nA TextField gets the focus when inside scrollView showing keyboard by default will most likely happen at portrait mode.\r\n\r\nh6.Expected behavior\r\nTextField do not get focus - (as seen in iOS or Android emulators screen shoots)\r\n\r\nh6.Current behavior\r\nTextField do get focus - actual devices\r\n\r\nh6.Steps to reproduce\r\n1. Run code below\r\n2. Monitor unique app window \r\n\r\nh6.Repro sequence\r\n{code}\r\nvar win = Titanium.UI.createWindow();\r\n\r\nwin.orientationModes = [\r\n\t//if you remove Portrait modes the keyBoard won't be displayed\r\n\tTitanium.UI.PORTRAIT,\r\n\tTitanium.UI.UPSIDE_PORTRAIT,\r\n\tTitanium.UI.LANDSCAPE_LEFT,\r\n\tTitanium.UI.LANDSCAPE_RIGHT\r\n]; \r\n\r\nvar scrolly = Titanium.UI.createScrollView({\r\n\tcontentHeight:'auto'\r\n});\r\nwin.add(scrolly);\r\n\r\nvar tf6 = Titanium.UI.createTextField({\r\n\thintText:'custom background image',\r\n\tborderColor: 'red',\r\n\theight:32,\r\n\ttop:235,\r\n\tbackgroundImage:'KS_nav_views.png',\r\n\tpaddingLeft:10,\r\n\tleft:10,\r\n\tright:60,\r\n\tfont:{fontSize:13},\r\n\tcolor:'#777',\r\n\tclearOnEdit:true\r\n});\r\n\r\n\r\nscrolly.add(tf6);\r\n\r\n//adding text field to a window the keyboard doesn't gets displayed\r\n//win.add(tf6);\r\n\r\nwin.open();\r\n{code}\r\n\r\nh1.Tested on\r\n\r\nh3.LG Ally 2.2 - Titanium SDK 2.0.1 - keyboard doesn't gets displayed\r\n{code}\r\n05-16 16:42:03.153: I/ActivityManager(1347): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.appc.test/._1testyActivity }\r\n05-16 16:42:03.473: I/ActivityManager(1347): Start proc com.appc.test for activity com.appc.test/._1testyActivity: pid=3719 uid=10065 gids={1015, 3003}\r\n05-16 16:42:03.813: I/TiApplication(3719): (main) [0,0] checkpoint, app created.\r\n05-16 16:42:04.163: I/TiApplication(3719): (main) [358,358] Titanium 2.0.1 (2012/04/12 16:36 999c68a)\r\n05-16 16:42:04.753: I/TiApplication(3719): (main) [589,947] Titanium Javascript runtime: v8\r\n05-16 16:42:05.283: I/TiRootActivity(3719): (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\n05-16 16:42:06.503: E/TiApplication(3719): (KrollRuntimeThread) [1222,1222] APP PROXY: ti.modules.titanium.app.AppModule@44a77a20\r\n05-16 16:42:06.953: I/TiRootActivity(3719): (main) [0,0] checkpoint, on root activity resume. activity = com.appc.test._1testyActivity@44a10420\r\n05-16 16:42:07.563: I/ActivityManager(1347): Displayed activity com.appc.test/._1testyActivity: 4115 ms (total 4115 ms)\r\n{code}\r\n\r\nh3.Droid Razr 2.3.5 stack trace - keyboard gets displayed\r\n{code}\r\n05-16 16:21:53.390: I/ActivityManager(517): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.appc.test/._1testyActivity } from pid 880\r\n05-16 16:21:53.421: D/ActivityRenderTarget(880): onPause\r\n05-16 16:21:53.460: I/gralloc(517): Allocated 0x75617020 size 1029989747\r\n05-16 16:21:53.484: I/TiRootActivity(6166): (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\n05-16 16:21:53.664: W/TiApplication(6166): (KrollRuntimeThread) [186,186] Registering module with name already in use.\r\n05-16 16:21:53.664: E/TiApplication(6166): (KrollRuntimeThread) [0,186] APP PROXY: ti.modules.titanium.app.AppModule@40605ca8\r\n05-16 16:21:53.742: W/TiUIScrollView(6166): (main) [72,258] Scroll direction could not be determined based on the provided view properties. Default VERTICAL scroll direction being used. Use the 'scrollType' property to explicitly set the scrolling direction.\r\n05-16 16:21:53.757: I/TiRootActivity(6166): (main) [0,0] checkpoint, on root activity resume. activity = com.appc.test._1testyActivity@405ab190\r\n05-16 16:21:53.781: W/InputManagerService(517): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@40b7e090 (uid=10035 pid=880)\r\n05-16 16:21:53.789: I/gralloc(517): Allocated 0x660072 size 6488161\r\n05-16 16:21:53.835: I/ActivityManager(517): Displayed com.appc.test/._1testyActivity: +359ms\r\n05-16 16:21:53.843: D/LatinKeyboard(710): updateF1Key-mIsAlphaKeyboard: true ,mHasVoiceButton: true\r\n05-16 16:21:53.843: D/LatinKeyboard(710): updateF1Key-mIsAlphaKeyboard: true ,mHasVoiceButton: true\r\n05-16 16:21:53.859: I/gralloc(517): Allocated 0x660072 size 6488161\r\n05-16 16:21:53.867: I/gralloc(517): Allocated 0x660072 size 6488161\r\n05-16 16:21:53.921: D/dalvikvm(710): GC_EXTERNAL_ALLOC freed 33K, 48% free 4975K/9479K, external 5325K/5473K, paused 48ms\r\n05-16 16:21:53.945: I/gralloc(517): Allocated 0x660072 size 6488161\r\n{code}\r\n\r\nh3.Android emulator 2.3.3 stack trace - Titanium SDK 2.0.1 (keyboard doesn't gets displayed)\r\n{code}\r\n[INFO][ActivityManager( 60)] Start proc com.appc.test for activity com.appc.test/._1testyActivity: pid=330 uid=10039 gids={1015, 3003}\r\n[INFO][TiApplication( 330)] (main) [0,0] checkpoint, app created.\r\n[INFO][TiApplication( 330)] (main) [270,270] Titanium 2.0.1 (2012/04/12 16:36 999c68a)\r\n[INFO][TiApplication( 330)] (main) [11,816] Titanium Javascript runtime: v8\r\n[INFO][TiRootActivity( 330)] (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\n[ERROR][TiApplication( 330)] (KrollRuntimeThread) [3009,3009] APP PROXY: ti.modules.titanium.app.AppModule@43ea0068\r\n[WARN][V8Object( 330)] Runtime disposed, cannot set property 'userAgent'\r\n[INFO][TiRootActivity( 330)] (main) [0,0] checkpoint, on root activity resume. activity = com.appc.test._1testyActivity@43e7b658\r\n[INFO][ActivityManager( 60)] Displayed activity com.appc.test/._1testyActivity: 6439 ms (total 6439 ms)\r\n\r\n{code}\r\n\r\nh3.Android emulator 2.3.3 stack trace - Titanium SDK 2.1.0 (keyboard doesn't gets displayed)\r\n{code}\r\n[INFO][ActivityManager( 60)] Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.appc.test/._1testyActivity }\r\n[INFO][ActivityManager( 60)] Start proc com.appc.test for activity com.appc.test/._1testyActivity: pid=268 uid=10039 gids={1015, 3003}\r\n[INFO][dalvikvm( 260)] JNI: AttachCurrentThread (from ???.???)\r\n[INFO][AndroidRuntime( 260)] NOTE: attach of thread 'Binder Thread #3' failed\r\n[INFO][TiApplication( 268)] (main) [0,0] checkpoint, app created.\r\n[INFO][TiApplication( 268)] (main) [198,198] Titanium 2.1.0 (2012/04/19 17:26 7427bdd)\r\n[INFO][TiApplication( 268)] (main) [9,593] Titanium Javascript runtime: v8\r\n[INFO][TiRootActivity( 268)] (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\n[ERROR][TiApplication( 268)] (KrollRuntimeThread) [1392,1392] APP PROXY: ti.modules.titanium.app.AppModule@43e964a8\r\n[WARN][V8Object( 268)] Runtime disposed, cannot set property 'userAgent'\r\n[WARN][TiUIScrollView( 268)] (main) [753,2145] Scroll direction could not be determined based on the provided view properties. Default VERTICAL scroll direction being used. Use the 'scrollType' property to explicitly set the scrolling direction.\r\n[INFO][TiRootActivity( 268)] (main) [0,0] checkpoint, on root activity resume. activity = com.appc.test._1testyActivity@43e7aa40\r\n[INFO][Launcher.Model( 118)] not binding apps: no Launcher activity\r\n[INFO][ActivityManager( 60)] Displayed activity com.android.launcher/com.android.launcher2.Launcher: 22257 ms (total 22257 ms)\r\n[INFO][ActivityManager( 60)] Displayed activity com.appc.test/._1testyActivity: 6119 ms (total 6119 ms)\r\n[WARN][TiAnalyticsSvc( 268)] (Thread-13) [27239,27239] Analytics Service Started\r\n[INFO][TiAnalyticsSvc( 268)] (Thread-13) [135,27374] Sending 10 analytics events.\r\n[WARN][KeyCharacterMap( 108)] No keyboard for id 0\r\n[WARN][KeyCharacterMap( 108)] Using default keymap: /system/usr/keychars/qwerty.kcm.bin\r\n{code}\r\n", "attachment": [ { "id": "27726", "filename": "2.0.1_& _2.1.0._Droid_textField.jpg", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-05-16T14:55:09.000+0000", "size": 109549, "mimeType": "image/jpeg" }, { "id": "27725", "filename": "2.0.1._iOS_textField.jpg", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-05-16T14:55:09.000+0000", "size": 32748, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Android: TextField gets the focus when inside scrollView showing keyboard by default", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Product: Mobile\r\nTitanium SDK: Mobile 2.0.1, 2.1.0\r\nPlatform OS: Android\r\nPlatform OS Version: 2.3", "comment": { "comments": [ { "id": "195625", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It's a native Android behavior that TextField gets the focus when inside scrollView. There is a workaround by using a window property [windowSoftInputMode|http://docs.appcelerator.com/titanium/2.0/#!/api/Titanium.UI.Window-property-windowSoftInputMode] to stop the soft keyboard showing up automatically.\r\n{code}\r\nwindowSoftInputMode: Ti.UI.Android.SOFT_INPUT_STATE_HIDDEN\r\n{code}", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-22T13:37:29.000+0000", "updated": "2012-05-22T13:37:29.000+0000" }, { "id": "195634", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Thanks, I've tested & relayed this important info to customer.", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-05-22T14:01:43.000+0000", "updated": "2012-05-22T14:01:43.000+0000" }, { "id": "411029", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:28:33.000+0000", "updated": "2017-03-09T23:28:33.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }