2011-11-26 20 views
0

我目前正在設置選項動態更改主題。主題非常簡單,只改變背景顏色。更換主題後,紡紗廠不看右看像http://imageshack.us/photo/my-images/600/baddropdown.png/ 我與設置背景透明自定義主題打破微調外觀

<TextView xmlns:android="http://schemas.android.com/apk/res/android" 
    android:ellipsize="marquee" 
    android:layout_height="wrap_content" 
    android:layout_width="match_parent" 
    android:singleLine="true" 
    style="?android:attr/spinnerItemStyle" 
    android:background="@android:color/transparent" 
    android:id="@android:id/text1" /> 

我試圖用一個自定義spinner_dropdown_item相同,但一個自定義的微調項目解決了第一個問題(微調本身)它不起作用。任何想法,我可以嘗試獲得默認微調外觀將不勝感激。

編輯:我能夠改變spinner_dropdown_item背景http://imageshack.us/photo/my-images/10/halfbaddropdown.png/但下拉提示背景和分隔符是應用程序背景顏色,但我想默認外觀。 注:刪除圖像鏈接,以便我可以發佈最新的。

編輯:問題已解決,實際上結束了一個簡單的修復。不得不改變這是

<style name="grey" parent="@android:style/Theme.Light"> 
     <item name="android:background">#EEE9E9</item> 
    </style> 

在styles.xml到

<style name="grey" parent="@android:style/Theme.Light"> 
     <item name="android:windowBackground">@color/converter_grey</item> 
    </style> 

我的自定義主題,並確定在colors.xml顏色

回答

3

問題已解決,acctually結束了一個簡單的固定。不得不改變這是

<style name="grey" parent="@android:style/Theme.Light"> 
    <item name="android:background">#EEE9E9</item> 
</style> 

在styles.xml到

<style name="grey" parent="@android:style/Theme.Light"> 
    <item name="android:windowBackground">@color/converter_grey</item> 
</style> 

我的自定義主題,並定義顏色colors.xml