Hi there!

I have a LinearLayout composed by 4 RelativeLayout. Every
RelativeLayout has the weight params set in order to fill all the
screen. All layouts are set as "fill_parent" for W and H.

+ LinearLayout
   + Relative 1 weight = 4 (visible)
   + Relative 2 weight = 5 (gone)
   + Relative 3 weight = 5 (visible)
   + Relative 4 weight = 5 (visible)

I want to animate the Relative 3 and 4 and then hide them, so I set
VISIBILITY.GONE when the animation ends. At this point I'd like to
show the Relative 2, which was gone before, so I set it to VISIBLE
So I get:

+ LinearLayout
   + Relative 1 weight = 4 (visible)
   + Relative 2 weight = 5 (visible)
   + Relative 3 weight = 5 (gone)
   + Relative 4 weight = 5 (gone)

I expected that the dimensions didn't changed and that the Relative 2
substituted all the space covered by the others (3 and 4). Instead the
Relative 1 changes its own height... I guess it depends on the weight
params.... how to avoid it?

Please help me... it's quite urgent!



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