我在 AlertDialog.Builder 中添加了两个 NumberPicker。我试图使 NumberPicker 文本正确对齐。但我不能。!
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/TextView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:text="@string/minimum_value"
android:textSize="13sp" />
<NumberPicker
android:id="@+id/numberPicker1"
android:layout_width="match_parent"
android:layout_alignParentRight="true"
android:layout_height="wrap_content"/>
</RelativeLayout>