最佳答案
我正在开发一个应用程序,其中我需要改变旋转背景布局,以匹配背景颜色。我研究并发现,我需要创建一个9补丁图像。我已经创建了9补丁图片,并在应用程序中使用,但它看起来比正常的自旋器大,而且我不能看到下拉按钮在自旋器以及。
我很高兴,如果你们能提供一个清晰的教程,从开始创建9补丁图像的 Spinner 和使用它的应用程序。
旋转器的密码
<Spinner
android:id="@+id/spnIncredientone"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/txtMixtureTitle"
android:layout_marginLeft="5dip"
android:layout_marginRight="5dip"
android:background="@drawable/spinner_background"
android:prompt="@string/selectmixture" />