http://groups.google.com/group/android-developers/browse_thread/thread/50f0fc185da8fe4d?pli=1
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