KB-20071120-043
From Triled Wiki
- Status: opened
- author: ViaToR
- link: http://groups.google.com/group/android-developers/msg/3d4670d6291b340b
- Description: NullException when GridView get focus from other neighbor widget.
- Confirmed on: m3-rc37a and earlier versions.
- Steps to reproduce:
Edit grid_2.xml in samples/ApiDemos/res/layout, add LinearLayout with an EditText and put GridView into this layout.
When you run a grid sample the initial focus is on EditText, and if you try to select Grid with the pad, you will see a NullException.
[edit] Temporarily solution
Suggested by ddm (see [1]):
- Make some wrapper to GridView.
- Recreate GridView every time it loses focus
- Give focus back by "hands" throught wrapper, like GridView.requestFocus();
