One of my products has an activity with three LinearLayouts that start
out invisible.  The user has buttons that toggle these layouts on and
off, so they don't have the additional interface getting in the way if
they don't want it.  This toggle behavior has broken on the 2.3.3
version of Android, does anyone know what's changed there?  The
behavior I'm seeing now is that if the layout is set to invisible
immediately, I can never make it visible again.

The way this works is extremely simple, and has been fine for most of
a year.  Upon startup I load the layout, then get those three layouts
and call setVisibility( View.INVISIBLE ).  Later, when the user
presses the appropriate button, the button's callback does this:

        LinearLayout ll =
(LinearLayout)findViewById( R.id.PropsDetailedLayout );
        if( ll.getVisibility() != View.VISIBLE )
                ll.setVisibility( View.VISIBLE );
        else
                ll.setVisibility( View.INVISIBLE );

The strange thing is, toggling them visible/invisible works just fine
so long as I don't make make them invisible on startup.  Even if I
change the setting in the XML to have them be default upon load rather
than using the method, I still can't ever make them visible again.

I've confirmed it's not a problem in getVisibility, as forcibly
setting them to visible any time a button press happens doesn't work
either.

Has anyone else had this problem?

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

Reply via email to