Yeah, i was thinking about deleting it from the list, but i thought taht 
there is any way of returning null from GetView(). Ok I think i'll 
delele this file form list. Thanks

Mark Murphy pisze:
> Łukasz Warchoł wrote:
>   
>> Hi all,
>> I have my own ListAdapter  drawing my list. But i have a question. Is it
>> possible to skip(not draw) object?
>> For example: I have a ArrayList with things to draw, and dont wanto to
>> draw one at positon 2. Anyone nows how to?
>>     
>
> Expanding on your example, let us assume you have a six-item list, and
> you do not want to draw the one at position 2 -- you only want to draw
> positions 0, 1, 3, 4, and 5.
>
> You would need to override getCount(), getItem(), and every other
> Adapter method that knows about the number and positions of objects. You
> would have getCount() return 5 instead of 6 (since you are only drawing
> 5) and have getItem(), getView(), etc. know to subtract 1 from the
> supplied position if the supplied position > 2.
>
> It would be far simpler to just remove the offending item from the list
> in the first place, if possible.
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to