On 12/14/2011 09:13 AM, havexz wrote:
thanks for referring. Questions below are still open:

OPEN Questions:

1. Is someone else also face this issue?
I did, this is how I found the link I sent.
2. Any reason why normal EditText works but EditText in ListView dont?
Did you read the thread in the link I sent, the first reply suggest that:
"ListView isn't really meant to handle that type of UI with editableentries"
3. Why IME cursor handle is giving issue in ListView but not
elsewhere?
Same as 2.


Regarding "Also is it good to put EditText in ListView or there are
better options?" I have soln for maintaining the content. I can have
text watcher or something.

From the same thread:
" vertical LinearLayout wrapped ina ScrollView, containing horizontal LinearLayours of the EditTexts andButtons"

Hope this helps
/Yaron



On Dec 14, 12:45 am, poncho<poncho...@gmail.com>  wrote:
http://groups.google.com/group/android-developers/browse_thread/threa...

On 12/14/2011 08:08 AM, havexz wrote:







Hi
So here is what I did. I have a ListView and each item in it is a
EditText. Now, just so you know I am using CursorAdapter with
ListView, and I am creating EditText in newView and filling it with
some text in bindView.
Now how to recreate the issue, I just open the activity, click on any
of the EditText and just click enough to see the orange color handle
appears with cursor. Now just press back twice. Just press fast enough
that orange handle still visible on screen. Now wait a sec and you
have:
..... has leaked window ..... that was originally added here.
I tried the normal EditText without the ListView and that works fine.
What I think is that IME cursor handle is retaining the EditText and
leading to leak. I also tried EditText with only 'hint' (empty
EditText) and got same issue in the ListView.
Now my questions:
Is someone else also face this issue?
Any reason why normal EditText works but EditText in ListView dont?
Also is it good to put EditText in ListView or there are better
options?
Well this might be a common issue and some common soln. but I searched
it found no good soln.
Thanks in advance.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to