0

I have a ListView basically with some TextViews on it. If a listitem is clicked, I change the visibility of the TextViews to GONE, and the visibility of an EditText to VISIBLE.

After that I want to focus on the EditText and show the keyboard. But if the keyboard comes up, the ListView will be redrawn, and the TextViews will be VISIBLE again, and the EditText GONE. I tried to show the keyboard in getView() too, but then the ListView will be several times redrawn.

How can I show the keyboard so, that the list won't be redrawn?

Siva
  • 9,043
  • 12
  • 40
  • 63
Milan Tenk
  • 2,415
  • 1
  • 17
  • 24

1 Answers1

2

when keyboard appear then view port changed callback receive in onSizeChanged(int w, int h, int oldw, int oldh) method and you can try setFocasable Item(true);

Ashish Singh
  • 371
  • 3
  • 16