user2291423
user2291423

Reputation: 121

EditText not showing when keyboard comes up

I have an issue with editext in my expandablelist view child.List moves up when the keyboard shown intially , but when i start typing list moves down and edittext not shown..

I have added

   android:windowSoftInputMode="adjustPan" 

in manifest file and its not working for me..any hope

Upvotes: 3

Views: 689

Answers (1)

Aswin Rajendiran
Aswin Rajendiran

Reputation: 3409

First of all, it is not a good idea to have a EditText inside of a ListView. The keyboard coming up and repositioning of items doesn't work as expected on all devices and versions. But if you want to, use

android:windowSoftInputMode="adjustResize"

This will relayout the items on the screen to make sure the item with focus is visible.

Upvotes: 1

Related Questions