0
在上述(片劑橫向模式)圖片,什麼辦法可以最小化Spinner的下拉寬度?或者創建一個自定義下拉菜單?謝謝。
編輯: 我只是使用這個android自己的佈局。 spinner.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);
XML補充:
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="horizontal"
android:layout_margin="5dp"
android:weightSum="3">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Font Size"
android:textSize="15sp"
/>
<Spinner
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="2"
/>
</LinearLayout>
發佈您的代碼片段。以便我們可以幫助您根據它 –
編輯我的文章。 –
我的意思是添加包含定義的微調項目的xml –