Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to put Editable edittext within a listview?

I use section adapter for the whole listview.Now in this image,there is a edittext which is not editable.I want to make this edittext editable.

I use section adapter for the whole listview.Now in this image,there is a edittext which is not editable.I want to make this edittext editable.

like image 616
Chirag Shah Avatar asked Oct 24 '11 11:10

Chirag Shah


2 Answers

Try Adding android:windowSoftInputMode="adjustPan" in the activity holding the listview.

This is because i think that EditText's parent view is being recreated. Preference's getView(View convertView, ViewGroup parent) is being called with a blank convertView, rebuilding the entire view rather than reusing the existing one.

like image 178
Hanry Avatar answered Sep 24 '22 22:09

Hanry


I had same problem before, after searching lot I got one tutorial which was very helpful to solve this issue...please refer it...

http://vikaskanani.wordpress.com/2011/07/27/android-focusable-edittext-inside-listview/

like image 31
Chirag_CID Avatar answered Sep 25 '22 22:09

Chirag_CID