2013-12-14 29 views
0

我使用的是支持V7圖書館和我的衣被合計-V11的風格我設置光動作條支持庫:爲什麼它不工作?

<style name="AppBaseTheme" parent="Theme.AppCompat.Light"> 

的問題是動作條是黑暗的,我想光。另外對話是黑暗的,我想光。我該如何修復?

這裏寫https://developer.android.com/training/basics/actionbar/styling.html

「Theme.AppCompat.Light爲 」光「 的主題。」但根據你想要什麼doen't工作

+0

如果它的API級別爲什麼你需要SupportLibrary? – Raghunandan

回答

0

檢查此鏈接

http://android-developers.blogspot.in/2013/08/actionbarcompat-and-io-2013-app-source.html

自定義。看到父母的風格@android:style/Widget.Holo.Light.ActionBar

<style name="Theme.Styled" parent="@android:style/Theme.Holo.Light"> 
    <item name="android:actionBarStyle">@style/Widget.Styled.ActionBar</item> 
</style> 

<style name="Widget.Styled.ActionBar" 
    parent="@android:style/Widget.Holo.Light.ActionBar"> 
    <item name="android:background">@drawable/ab_custom_solid_styled</item> 
    <item name="android:backgroundStacked" 
     >@drawable/ab_custom_stacked_solid_styled</item> 
    <item name="android:backgroundSplit" 
     >@drawable/ab_custom_bottom_solid_styled</item> 
</style> 
相關問題