2014-11-15 14 views
0

這兩種實現AppCompat樣式的方法是否存在性能差異?一種方法比另一種更好嗎?AppCompat - 使用v14文件夾性能的樣式

值/ styles.xml

<style name="ActionBar.Solid.Sunshine" parent="Widget.AppCompat.Light.ActionBar.Solid.Inverse"> 
    <item name="android:background">@color/sunshine_blue_500</item> 
    <item name="background">@color/sunshine_blue_500</item> 
</style> 

--------- VS --------------------

值-V14/styles.xml

<style name="ActionBar.Solid.Sunshine" parent="Widget.AppCompat.Light.ActionBar.Solid.Inverse"> 
    <item name="android:background">@color/sunshine_blue_500</item> 
</style> 

值/ styles.xml

<style name="ActionBar.Solid.Sunshine" parent="Widget.AppCompat.Light.ActionBar.Solid.Inverse"> 
    <item name="background">@color/sunshine_blue_500</item> 
</style> 

回答

0

的V-14雙文件夾的方法是更好的,或者如果值/ styles.xml包含命名空間是一個不能用最小API級別訪問,你會得到一個錯誤

相關問題