[android-developers] Re: CursorAdapter Problem

2010-07-26 Thread blcooley
For a CursorAdapter, you don't normally Override getView. Instead,
you'll do all that work in bindView, which takes a Cursor as an
argument (this Cursor is the one that you provide when you instantiate
a new CursorAdapter for your ListView).

So, basically, you can move your implementation of getView into
bindView and clean it up a bit (e.g., you won't have to instantiate a
Cursor, just use the one that is passed in), then remove getView from
your implementation.

Best regards,
Brian Cooley

On Jul 26, 9:50 am, charles berman charles.heath.ber...@gmail.com
wrote:
 can anyone tell me what im doing wrong with my cursorAdapter?
  its making my display choppy when i scroll. I used to have it within a
 getview but was ripped (rightfully so) on IRC several times because thats
 not the right place for it. Im still learning and just trying to correctly
 wrap my head around things.

 http://pastebin.com/Dc5ppHUM

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


Re: [android-developers] Re: CursorAdapter Problem

2010-07-26 Thread charles berman
Brian,

Thank you for the response. I previously had it setup as a
SimpleCursorAdaptor and that is why i was using the getView(). I did as you
suggested,
Charles Berman



On Mon, Jul 26, 2010 at 11:44 AM, blcooley blcoo...@gmail.com wrote:

 For a CursorAdapter, you don't normally Override getView. Instead,
 you'll do all that work in bindView, which takes a Cursor as an
 argument (this Cursor is the one that you provide when you instantiate
 a new CursorAdapter for your ListView).

 So, basically, you can move your implementation of getView into
 bindView and clean it up a bit (e.g., you won't have to instantiate a
 Cursor, just use the one that is passed in), then remove getView from
 your implementation.

 Best regards,
 Brian Cooley

 On Jul 26, 9:50 am, charles berman charles.heath.ber...@gmail.com
 wrote:
  can anyone tell me what im doing wrong with my cursorAdapter?
   its making my display choppy when i scroll. I used to have it within a
  getview but was ripped (rightfully so) on IRC several times because thats
  not the right place for it. Im still learning and just trying to
 correctly
  wrap my head around things.
 
  http://pastebin.com/Dc5ppHUM

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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