2014-09-30 3 views
0

다단계 회 전자의 스타일을 변경하려고했습니다. 회 전자의 배경을 변경할 수는 있지만 텍스트 색과 단추 배경을 변경할 수는 없습니다. styles.xml회 전자의 스타일 변경

<resources> 

<!-- Base application theme. --> 
<style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar"> 
    <item name="android:windowNoTitle">true</item> 
    <item name="android:alertDialogStyle">@style/CustomDialogTheme</item> 
    <item name="android:spinnerDropDownItemStyle">@style/CustomDialogTheme</item> 
    <item name="android:spinnerItemStyle">@style/CustomDialogTheme</item> 
    <item name="android:spinnerStyle">@style/CustomDialogTheme</item> 
</style> 
<style name="CustomDialogTheme" parent="@android:style/Theme.Dialog"> 
    <item name="android:bottomBright">@color/white</item> 
    <item name="android:bottomDark">@color/white</item> 
    <item name="android:bottomMedium">@color/white</item> 
    <item name="android:centerBright">@color/white</item> 
    <item name="android:centerDark">@color/white</item> 
    <item name="android:centerMedium">@color/white</item> 
    <item name="android:fullBright">@color/white</item> 
    <item name="android:fullDark">@color/white</item> 
    <item name="android:topBright">@color/white</item> 
    <item name="android:topDark">@color/white</item> 
    <item name="android:textColor">@color/blue</item> 
</style> 

그리고 지금, 내 스피너는 다음과 같습니다 : enter image description here

내가 (작동하지 않는 <item name="android:textColor">@color/blue</item>) 텍스트 색상을 변경하려면 버튼 배경 여기 내 코드는 확인란 색상. 자체 LayoutInflater (Why does LayoutInflater ignore the layout_width and layout_height layout parameters I've specified?)를 정의하거나 배열 어댑터 (How to change font style for spinner item)의 하위 클래스를 만들지 않고이 작업을 수행 할 수 있습니까?

답변

0

내 github 프로젝트를 볼 수 있습니다. 나는 이것이 너를 너무 많이 도울 것이라고 생각한다.

Custom Spinner

Custome Checkbox

+0

좋은 생각이 프로젝트에 당신이 스크린 샷을 제공하는 경우! – mmlooloo

관련 문제