ListAdapter: View.GONE on some element

by arnouf » Tue, 14 Apr 2009 21:10:38 GMT


Sponsored Links
 Hi all,

I've a big issue...

In a ListView using a BaseAdpater extension, I would like hide some
entries (using View.GONE in my getView method).

The line is erase, but i've still grey line between each record.

How can I change that?

Thanks a lot!

Regards
--~--~---------~--~----~------------~-------~--~----~



ListAdapter: View.GONE on some element

by Dianne Hackborn » Wed, 15 Apr 2009 01:49:41 GMT


 That is not how ListView is supposed to work.  You need to make the actual
entry in the adapter disappear.






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. read IM Contacts

How can I read IM(Instant message) contacts from android on sdk1 r1?
--~--~---------~--~----~------------~-------~--~----~

2. new Socket("10.0.2.2", 2142)

agreed,
I had this problem too.

In my opinion, this should certainly be mentioned in
http://code.google.com/android/reference/java/net/ServerSocket.html

so that people don't have to search for "unknown error" which
was the exception i got when trying to do ServerSocket(22322).


setting this permission made this work though







--~--~---------~--~----~------------~-------~--~----~

3. Modifying Phone Information

4. Can I record an audio file via MediaRecorder on the simulator which based on android-sdk-windows-1.0_r1?

5. compatibility between Android (beta version) and GWT 1.5.1

6. Availability and installation

7. Custom view scrolling