2011-11-26 23 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