Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/183.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 将表格放置在具有权重和动态设置可见性的LinearLayout中时,表格将消失_Android - Fatal编程技术网

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