Android 将表格放置在具有权重和动态设置可见性的LinearLayout中时,表格将消失
我有以下的布局Android 将表格放置在具有权重和动态设置可见性的LinearLayout中时,表格将消失,android,Android,我有以下的布局 <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <ScrollView android:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ScrollView
android:layout_width="match_parent"
android:layout_weight="300"
android:layout_height="0dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/add_ticket_info"
android:visibility="gone"
android:orientation="horizontal">
<TableLayout
</TableLayout>
</LinearLayout>
</ScrollView>
<Button
android:id="@+id/ticket_add_next_button"
android:layout_width="match_parent"
android:layout_weight="1"
android:layout_height="wrap_content"
android:layout_marginBottom="0dp"
android:visibility="gone"
/>
</LinearLayout>
我试过你的布局,它显示了TableLayout。您是否也将LinearLayout包装表格布局可见性设置为visible right?@AbdurrahmanOğuzhanDurmaz当我将ticket\u add\u next\u按钮
可见性设置为visible