5
스피너 항목의 목록 선택자 색을 추악한 오렌지색 이외의 것으로 변경하고 싶습니다. 내가 읽은 바에 따르면이 작업을 수행하는 방법은 android:spinnerSelector
속성을 설정하는 것입니다. 나는 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