Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13262] Android: ListView - Can't focus textfield in listview row

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-04-05T20:56:38.000+0000
Affected Version/sRelease 3.1.0
Fix Version/sRelease 3.1.0, 2013 Sprint 07 API, 2013 Sprint 07, Release 3.2.0
ComponentsAndroid
Labelskitchensink, qe-sdk3.1.0, qe-testadded
ReporterEric Merriman
AssigneeVishal Duggal
Created2013-03-28T23:08:24.000+0000
Updated2015-05-12T10:02:30.000+0000

Description

Description

I was unable to focus the textfields in the listView in one of the KitchenSnk tests. The test is located at: Base UI > Views > List View > Update Items.

Steps to reproduce:

1) Install the KS version from the repo on master branch 2) Navigate to Base UI > Views > List View > Update Items 3) Attempt to focus one of the two text fields in the top two rows

Result:

Text field does not focus, and Android back button UI flashes slightly. 46. Expected: Text field focuses, allowing input

Comments

  1. Vishal Duggal 2013-03-29

    Pull pending https://github.com/appcelerator/titanium_mobile/pull/4060
  2. Ping Wang 2013-04-03

    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.
  3. Vishal Duggal 2013-04-04

    KS pull pending https://github.com/appcelerator-developer-relations/KitchenSink/pull/96
  4. Hieu Pham 2013-04-05

    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.
  5. Ping Wang 2013-04-05

    3_1_X PR: https://github.com/appcelerator/titanium_mobile/pull/4103
  6. Anshu Mittal 2013-04-08

    Tested with: SDK: 3.1.0.v20130405170202 Studio:3.1.0.201304011603 Device: Samsung galaxy note(2.3.6) OS: OSX 10.8.3
  7. Martin Guillon 2013-10-27

    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...
  8. Martin Guillon 2013-10-27

    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)
  9. Martin Guillon 2013-10-27

    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

JSON Source