I have a ListView filled with EditTexts. They are unfocusable on start, but user may enter "edit mode" after long clicking a ListView item - the corresponding ListView. The first weird thing is when the very first long click happens. EditText gets focus, but the keyboard does not appear. EditText needs to be tapped for it to finally appear. When after that the other list item is long clicked, the keyboard appears. The only difference in internal behaviour I managed to observe is that in the first case onClick event doesn't fire to EditText, while in the second case it does.
But the most frustrating thing happens sometime when I edit a couple of items, scroll here and there, edit a couple more and suddenly I end up in a focused EditText without keyboard shown and without any way to bring the keyboard up again in that EditText, tapping doesn't help. I try to be really careful in my apadter and I save EditText state and re-create it in my ListView adapter in getView method.
Any suggestions on how to debug this stuff? Perhaps, someone could explain how the keyboard decides to show up, and how to debug this event if it's possible.