Thanks a lot poncho.

Well that leads to few other questions:

Say I have 1000 items and i want to give in-place editing (say not
using ListView) so now I have to create 1000 editboxes in a
LinearLayout.

Can't it make more sense to use ListView so that EditBoxes can be re-
cycled? Creating 100 EditBox does not make sense.

Also I understand there are focus issues and what not when using
EditBox with ListView, but I can't understand why it is crashing with
Handle visible in EditBox (in ListView)?

Now other option is to give user a way to edit one item in a small
dialog. But his solution is not very elegant for End User.

On Dec 14, 4:41 am, poncho <poncho...@gmail.com> wrote:
> 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