我想自定义微调。我发现这个教程, http://www.gersic.com/blog.php?id= 57 它看起来很棒,但所有这一切,我发现了一些错误,就像下面的
I am trying to customize spinner. I found this tutorial, http://www.gersic.com/blog.php?id=57 It looks great but I am finding some errors all of which is like the following
error: No resource identifier found for attribute 'state_dropdown_showing' in package 'android'
和导致这个错误的XML是
and the xml which leads to this error is
<!-- DROPDOWN SHOWING-->
<item android:state_first="true"
android:state_dropdown_showing="true"
android:drawable="@drawable/btn_dropdown_down"
/>
<item android:state_middle="true"
android:state_dropdown_showing="true"
android:drawable="@drawable/btn_dropdown_up_down"
/>
<item android:state_last="true"
android:state_dropdown_showing="true"
android:drawable="@drawable/btn_dropdown_up"
/>
<item android:state_single="true"
android:state_dropdown_showing="true"
android:drawable="@drawable/btn_dropdown_neither_up_down"
/>
<!-- DROPDOWN NOT SHOWING-->
<item android:state_first="true"
android:state_dropdown_showing="false"
android:drawable="@drawable/btn_dropdown_right_only"
/>
<item android:state_middle="true"
android:state_dropdown_showing="false"
android:drawable="@drawable/btn_dropdown_left_right_collapsed"
/>
<item android:state_last="true"
android:state_dropdown_showing="false"
android:drawable="@drawable/btn_dropdown_left_only"
/>
<item android:state_single="true"
android:state_dropdown_showing="false"
android:drawable="@drawable/btn_dropdown_neither"
/>
和我没有找到任何净相关与这个。我在修复了。我想改变它的外表和感觉与漂亮的彩色背景定期微调的。
And I am not finding anything in the net relevant to this. I am at a fix now. I want to change the look and feel of the regular spinner with nice color background.
有人请指导我一下微调的定制。
Anybody please guide me about customization of spinner.
安卓state_dropdown_showing后R15版本制作only..so更新的Android SDK工具version.it是希望有助于所有
android:state_dropdown_showing it is worked on after r15 version only..so update the android sdk tools version.it is hopefully helpful to all