开发者

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

开发者 https://www.devze.com 2023-03-19 17:20 出处:网络
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 Listv

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

精彩评论

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