2014-03-24 47 views

回答

16

這適用於程序兼容性:

<style name="MyAppTheme" parent="Theme.AppCompat.Light"> 
    <item name="actionBarStyle">@style/MyActionBarTheme</item> 
</style> 

<style name="MyActionBarTheme" parent="Base.Widget.AppCompat.Light.ActionBar.Solid"> 
    <item name="elevation">0dp</item> 
</style> 
+0

這應該是被接受的答案。 – OmarBizreh

-4

在style.xml補充一點:

<style name="MyTheme" parent="Theme.Sherlock"> 
.... 
<item name="windowContentOverlay">@null</item> 
<item name="android:windowContentOverlay">@null</item> 
.... 

+1

其他動態的方式嗎? –

+2

我也用min-sdk = 11的v7,但是「windowContentOverlay」給出了「找不到與Eclipse中給定名稱:attr'windowContentOverlay'」相匹配的資源。任何幫助? – Mehmed

+0

問題是關於AppCompat,而不是Sherlock。 – Michiel