Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/208.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.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微调器大小是否自动更改?_Android_Exception_User Interface - Fatal编程技术网

android微调器大小是否自动更改?

android微调器大小是否自动更改?,android,exception,user-interface,Android,Exception,User Interface,设置适配器之前。 适配器设置后。 我的Xml代码 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/wh

设置适配器之前。

适配器设置后。

我的Xml代码

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical" >

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal" >

    <Spinner
        android:id="@+id/spin_filter"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:spinnerMode="dropdown"
        android:layout_weight="1" />

    <Spinner
        android:id="@+id/spin_sort"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:spinnerMode="dropdown"
        android:layout_weight="1" />

  </LinearLayout>
  <View
    style="@style/Divider"
    android:layout_width="match_parent"
    android:layout_height="1dp" />
 ..........

 </LinearLayout>

..........
我想显示相同宽度的微调器。每个微调器的宽度必须为父宽度的50%。

更改微调器的宽度

android:layout_width="wrap_content"

这样,内容宽度就不会影响微调器的宽度,只有版面权重才会将宽度分配给微调器。

更改微调器的宽度

android:layout_width="wrap_content"

这样,内容宽度就不会影响微调器的宽度,只有版面权重才会将宽度分配给微调器。

更改微调器的宽度

android:layout_width="wrap_content"

这样,内容宽度就不会影响微调器的宽度,只有版面权重才会将宽度分配给微调器。

更改微调器的宽度

android:layout_width="wrap_content"


因此,内容宽度不会影响微调器宽度,只有版面权重才会将宽度分配给微调器。

将两个微调器的版面宽度指定为0dp。

将两个微调器的版面宽度指定为0dp。

将两个微调器的版面宽度指定为0dp。

将两个微调器的版面宽度指定为0dp。

将两个微调器的版面宽度指定为0dp两个纺纱机