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两个纺纱机