Not sure if that is possible... but there are some possible workarounds if
not

The first, and probably more ideal solution, is to filter it out in your
query that returns a cursor.

The other option, though less ideal, would be to create a different kind of
adapter, perhaps an ArrayAdapter, and make it take a cursor.  Then you can
loop through the cursor and copy the items to some sort of data structure
(ArrayList maybe?) and perform the filtering at that point.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Oct 20, 2011 at 8:47 AM, dara kok <[email protected]> wrote:

> Hello,
>
> I try to create list view that get its data from CursorAdapter. My cursor
> will contain all the row. And within the adapter implementation, base on a
> criteria, I want to skip a certain row from being displaying in the
> listview.
>
> Is that possible?  Example from a newView or bindView method, i return
> null. will that work?
>
> Thanks,
> darakok
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to