[TIMOB-13262] Android: ListView - Can't focus textfield in listview row
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-04-05T20:56:38.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | Release 3.1.0, 2013 Sprint 07 API, 2013 Sprint 07, Release 3.2.0 |
Components | Android |
Labels | kitchensink, qe-sdk3.1.0, qe-testadded |
Reporter | Eric Merriman |
Assignee | Vishal Duggal |
Created | 2013-03-28T23:08:24.000+0000 |
Updated | 2015-05-12T10:02:30.000+0000 |
Pull pending https://github.com/appcelerator/titanium_mobile/pull/4060
Tested KS->ListView->Update Items on Galaxy Nexus (4.0.4) and everything works fine. Tested on HTC Sensation 4G (2.3.4) and the textfield does not work correctly. Steps to reproduce on HTC Sensation 4G: 1.Click the test "Update Items" and the cursor shows in the first textfield. This is a correct behavior. 2. Click the second textfield and the cursor does not show in the second textfield. Seems the first textfield always has the focus. This is not expected. Should be a bug in the listview.
KS pull pending https://github.com/appcelerator-developer-relations/KitchenSink/pull/96
Please also test https://github.com/appcelerator/titanium_mobile/pull/4090. To reproduce this fail case, simply type something in the first text field then click on the 2nd text field. 50% of the time you should see the value of the 2nd text field change to the value of the first. If it doesn't fail the first time, restart the app and start over.
3_1_X PR: https://github.com/appcelerator/titanium_mobile/pull/4103
Tested with: SDK: 3.1.0.v20130405170202 Studio:3.1.0.201304011603 Device: Samsung galaxy note(2.3.6) OS: OSX 10.8.3
how can this one be fixed? 1 / i still have a focus problem on my Nexus 4 4.2.2. As soon as i focus a textfield inside a listview, it gets unfocus (but the keyobard stays there). 2 / it is never going to work correctly if you have multiple textfields. Why? because all the textfields from the same template share the same proxy thus the same value...
Can't edit my comment about the 1/, i fixed the "unfocus" problem. I still think the 2/ is a major problem (on its way to be fixed it seems)
Also i realised that it was SOFT_INPUT_ADJUST_RESIZE which broke everything. Because a layout is required the cells are redrawn thus the proxy is used to get the textfield values, but being shared the proxy has the wrong values … I guess we cant use textfield in listviews without SOFT_INPUT_ADJUST_PAN Sorry