5
我想更改列表选择的颜色上的微调项,比丑,橙色默认以外的东西。从我读到的方式来做到这一点是设置android:spinnerSelector
属性。然而,在Eclipse中,我当我尝试设置android:spinnerSelector
属性添加spinnerSelector当Android的错误,没有资源标识符发现
error: No resource identifier found for attribute 'spinnerSelector' in package 'android'
这里是它的微调我的xml文件得到这个错误;
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/darkgray" >
<Spinner
android:id="@+id/timespinner"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:spinnerSelector="@drawable/my_selector"
android:drawSelectorOnTop="true"
android:prompt="@string/timeprompt" />
</RelativeLayout>
相似:http://stackoverflow.com/questions/4535109/android-how-to-set-spinner-selector-to-own-image-icon – MrZander