私は完璧に動作するスピナーをデザイン問題にしました。 私のスピナーコードはスピナー arroundの図示していないAndroid Spinnerの国境問題
<Spinner
android:id="@+id/product"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawable="@drawable/border"
android:padding="25dp">
</Spinner>
Javaコード
描画可能/国境コード@spinnerShop = (Spinner) myView.findViewById(R.id.shop);
/*Shop Spinner*/
ArrayAdapter<CharSequence> shopArray = ArrayAdapter.createFromResource(getActivity(),
R.array.shopArray, android.R.layout.simple_list_item_1);
shopArray.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinnerShop.setAdapter(shopArray);
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners
android:radius="2dp" />
<solid android:color="@color/colorText" />
<stroke
android:width="1dip"
android:color="@color/colorPrimary"/>
</shape>
ボーダーである enter image description here
境界線は表示されますが、矢印は表示されません。 –