我有一个带有2个视图的LinearLayout,视图A占据了一些垂直空间,视图B占据了其余的布局。
<LinearLayout
android:id="@+id/ly2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@id/input"
android:orientation="vertical" >
<View
android:id="@+id/view1"
android:layout_width="match_parent"
android:layout_height="50dp" >
</View>
<WebView
android:id="@+id/webview"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
在某些时候,我想删除视图A。如何告诉LinearLayout刷新,以便视图B占用整个空间?
最好的祝福。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句