解决android自定义标题栏充满的问题

转自 http://www.iteye.com/topic/760314


学习目标:


1.如何定义themes.xml文件

2.如何引用style.xml里的style

3.如何重写系统的style,如何 继承系统标题android:WindowTitle

  1. <resources>      
  2.     <style name="StatusBarBackground">  
  3.         <item name="android:background">@drawable/shape</item>  
  4.     </style>  
  5.               
  6.     <style name="XWindowTitle" parent="android:WindowTitle">  
  7.         <item name="android:shadowColor">#BB000000</item>  
  8.         <item name="android:shadowRadius">0</item>  
  9.     </style>  
  10. </resources>  

4.如果不设置该系统属性?设置为@null

<item name="android:windowContentOverlay">@null</item>

你可能感兴趣的:(自定义title)