开发者

How can i move a layout up on screen when another one above it is invisible in android?

I have this kind of structure in my screen and there's +/- button on my screen. On clicking - ListView inside LinearLayout_2 has been set Invisible and I want to move LinearLayout_3 up when the Listview is hidden/invisible.

<RelativeLayout Id="1">
  <LinearLayout Id="2">
       <ListView />
  </LinearLayout>
  <LinearLayout Id="3" 开发者_如何学Gobelow="LinearLayout2"/>
</RelativeLayout>


I think you want visibility to be GONE

http://developer.android.com/reference/android/view/View.html#GONE

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜