[android-developers] Re: Weird problem with ListView

2010-10-01 Thread ericharlow
Hey John,
First off I like the styling you have on your list.
I ran into a problem like this before.
I definitely second the idea of listview recycling.
two things that might help.
One I assume you are using an EfficientAdapter, I was.
Try swaping the adapter for an array adapter just to see if you still
have the recycling problem.
Second look over all the Ids on different lists and the components
that make them up. Make sure there are no duplicate names that is
causing the recycling problem.
Hope this helps,
Eric Harlow

On Sep 28, 7:51 pm, John Gaby jg...@gabysoft.com wrote:
 I have a ListView which presents a table of items.  The table is
 supposed to look like:

 http://gabytest.com/images/good.png

 but if I scroll around a bit, I sometimes see:

 http://gabytest.com/images/bug.png

 Now this only seems to happen when I run the program on an actual
 device (Motorola Droid with Android 2.2).  I have never seen this
 happen on the emulator.

 Has anyone ever seen anything like this?  Does anyone have any
 suggestions about what I might look for?

 Thanks.

-- 
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


[android-developers] Re: Weird problem with ListView

2010-10-01 Thread ericharlow
Hello John,
I really like the look-n-feel of that list.
I agree with the idea that this is a recycling problem.
I think I ran into a problem very similar to this.
Two things to check.
First are you using an EfficientAdapter that stores id lookups in the
tag? I remember I was.
try switching adapters to say an ArrayAdapter to see if the problem
disappears.
if the problem does check the Ids on lists and the components that
make up the list content.
You may have some identical names which causes trouble when recycling.
Hope this helps.
Eric Harlow

On Sep 29, 10:02 am, John Gaby jg...@gabysoft.com wrote:
 That was a most informative video.  I am not sure it will solve this
 particular problem, but it will help me address some other issues I
 have with the ListView.

 Thanks.

 On Sep 29, 1:21 am, MrChaz mrchazmob...@gmail.com wrote:

  At a guess I'd say it's caused by the listview recycling views.
  There's a long talk here about 
  ListView:http://code.google.com/events/io/2010/sessions/world-of-listview-andr...

  On Sep 29, 2:51 am, John Gaby jg...@gabysoft.com wrote:

   I have a ListView which presents a table of items.  The table is
   supposed to look like:

  http://gabytest.com/images/good.png

   but if I scroll around a bit, I sometimes see:

  http://gabytest.com/images/bug.png

   Now this only seems to happen when I run the program on an actual
   device (Motorola Droid with Android 2.2).  I have never seen this
   happen on the emulator.

   Has anyone ever seen anything like this?  Does anyone have any
   suggestions about what I might look for?

   Thanks.

-- 
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


[android-developers] Re: Weird problem with ListView

2010-09-29 Thread Varun Khanduja
Hi John,

Although I don't have solution to your problem but I am trying to
learn how to make a list view similar to what you have done. I am
basically not able to understand how I can get that extra line below
the first line in each list item. Do you think you could share sample
code or help me out?

Thanks

On Sep 28, 6:51 pm, John Gaby jg...@gabysoft.com wrote:
 I have a ListView which presents a table of items.  The table is
 supposed to look like:

 http://gabytest.com/images/good.png

 but if I scroll around a bit, I sometimes see:

 http://gabytest.com/images/bug.png

 Now this only seems to happen when I run the program on an actual
 device (Motorola Droid with Android 2.2).  I have never seen this
 happen on the emulator.

 Has anyone ever seen anything like this?  Does anyone have any
 suggestions about what I might look for?

 Thanks.

-- 
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


[android-developers] Re: Weird problem with ListView

2010-09-29 Thread MrChaz
At a guess I'd say it's caused by the listview recycling views.
There's a long talk here about ListView:
http://code.google.com/events/io/2010/sessions/world-of-listview-android.html



On Sep 29, 2:51 am, John Gaby jg...@gabysoft.com wrote:
 I have a ListView which presents a table of items.  The table is
 supposed to look like:

 http://gabytest.com/images/good.png

 but if I scroll around a bit, I sometimes see:

 http://gabytest.com/images/bug.png

 Now this only seems to happen when I run the program on an actual
 device (Motorola Droid with Android 2.2).  I have never seen this
 happen on the emulator.

 Has anyone ever seen anything like this?  Does anyone have any
 suggestions about what I might look for?

 Thanks.

-- 
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


[android-developers] Re: Weird problem with ListView

2010-09-29 Thread John Gaby
That was a most informative video.  I am not sure it will solve this
particular problem, but it will help me address some other issues I
have with the ListView.

Thanks.

On Sep 29, 1:21 am, MrChaz mrchazmob...@gmail.com wrote:
 At a guess I'd say it's caused by the listview recycling views.
 There's a long talk here about 
 ListView:http://code.google.com/events/io/2010/sessions/world-of-listview-andr...

 On Sep 29, 2:51 am, John Gaby jg...@gabysoft.com wrote:

  I have a ListView which presents a table of items.  The table is
  supposed to look like:

 http://gabytest.com/images/good.png

  but if I scroll around a bit, I sometimes see:

 http://gabytest.com/images/bug.png

  Now this only seems to happen when I run the program on an actual
  device (Motorola Droid with Android 2.2).  I have never seen this
  happen on the emulator.

  Has anyone ever seen anything like this?  Does anyone have any
  suggestions about what I might look for?

  Thanks.

-- 
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