Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/187.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响应式设计,如gridview_Android_Responsive Design - Fatal编程技术网

如何进行android响应式设计,如gridview

如何进行android响应式设计,如gridview,android,responsive-design,Android,Responsive Design,我很想知道我应该使用哪种布局,就像下面的网格设计一样 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent"

我很想知道我应该使用哪种布局,就像下面的网格设计一样

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:orientation="vertical"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent">
    <LinearLayout android:layout_height="75dp"
                 android:id="@+id/bacon"
                 android:orientation="vertical"
                 android:layout_width="fill_parent">
        <TextureView android:id="@+id/bacon_title"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"/>
        <TextureView android:id="@+id/bacon_time_elapsed"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"/>
    </LinearLayout>
    <GridView android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:id="@+id/other_stuff"
              android:numColumns="2">

    </GridView>
</LinearLayout>


使用TableLayout并在运行时将行添加到要添加行的表中