Change Spinner content on fly

by arnouf » Tue, 14 Apr 2009 04:09:15 GMT

Sponsored Links
 Hi all,

I've a ListActivity containing entries present in my db.
Each line of this list is a Linearlayout containing image and text.

To avoid to reload a part of my db each time, I load it one time.
Records are put in my list used to build my adapter.

I would like to set invisible some lines of this ListActivity when
user clicks on a button.

In debug mode, the view seems Gone, but even if I use forceLayout on
adapter or requestLayout, the list is not reloaded.

Do you have an idea?

Other Threads

1. Making TextViews Spannable causes ListView performance to tank

Hi all,

I've got a list few which I've optimized in every possible way. Performance
matches the exchange email client so I'm happy in that respect. It's very
fluid regardless of the number of records. The problem is the moment I
introduce some conditional formatting of TextViews (think bold for unread,
normal for read) the list starts to get choppy when the user flings the
list. Is there a better way to tackle this formatting?

My layout is optimized (single relative layout) and I'm using a viewwrapper.

Example: (in my actual code there are 4 Textviews)

Spannable s = (Spannable) w.stepname.getText();

            if( state.equalsIgnoreCase( Tasks.STATE_READ ))
                s.setSpan( new StyleSpan( Typeface.NORMAL ), 0, s.length(),

                w.getStepName().setTextColor( 0xFFBDBEBD );
                s.setSpan( new StyleSpan( Typeface.BOLD ), 0, s.length(),

                w.getStepName().setTextColor( 0xFFFFFFFF );


2. Internet proxy setting on android emulator

Hi All,
  I'm trying to intercept all the http/https requests from android 2.1
sdk emulator (specifically interested in request from our app ) using
fiddler. I have fiddler running on the same machine where emulator is

I followed the sql query instruction (adb shell ....)
 I restarted emulator with below command

emulator -avd <emulator name> -http-proxy

but I still don't see anything in fiddler, even when I go to google
from browser in emulator.

If someone is able to view all the http connection from their android
emulator ( even if not through fiddler but some other tool) please
reply with instructions.

Thanks in advance,


3. Emulator and cellular access

4. Hidup Android, Google beri dukungan buat id-Android

5. Unknown error with AAPT tool while Build Projec

6. How to open virtual keyboard automatically

7. ListView questions