Questions tagged «nine-patch»

15
如何在Android中更改微调器背景?
我正在开发一个需要更改微调器背景布局以匹配背景色的应用程序。我研究发现,我需要创建一个9补丁程序映像。我已经完成创建9补丁程序图像并在应用程序中使用了它,但它看起来比普通的微调框还大,而且我也看不到微调框中的下拉按钮。 如果你们从开始为Spinner创建9补丁程序映像并在应用程序中使用它开始,我很高兴为您提供清晰的教程。 旋转器代码 <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" />
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.