1. <!--Setsthetextstyles-->
  2. <?xmlversion="1.0" encoding= "utf-8" ?>
  3. <!--Setsthetextstyles-->
  4. <resources>
  5. <stylename="CustomWindowTitleText" parent= "android:TextAppearance.WindowTitle" >
  6. <itemname="android:textSize" >20dip</item>
  7. <itemname="android:textColor" >#5599FF</item>
  8. <itemname="android:textStyle" >bold|italic</item>
  9. </style>
  10. <!--Changesthebackgroundcolorofthetitlebar-->
  11. <stylename="CustomWindowTitleBackground" >
  12. <itemname="android:background" ># 222222 </item>
  13. </style>
  14. <!--Setthethemefor thewindowtitle-->
  15. <!--NOTE:settingandroid:textAppearencetostyledefinedabove-->
  16. <stylename="CustomWindowTitle" parent= "android:WindowTitle" >
  17. <itemname="android:textAppearance" > @style /CustomWindowTitleText</item>
  18. <itemname="android:shadowDx" > 0 </item>
  19. <itemname="android:shadowDy" > 0 </item>
  20. <itemname="android:shadowRadius" > 5 </item>
  21. <itemname="android:shadowColor" >#1155CC</item>
  22. </style>
  23. <!--Overridepropertiesinthedefault theme-->
  24. <!--NOTE:youmustexplicitlythewindowTitleSizeproperty,thetitlebarwillnotre-sizeautomatically,textwillbeclipped-->
  25. <stylename="CustomTheme" parent= "android:Theme" >
  26. <itemname="android:windowTitleSize" >40dip</item>
  27. <itemname="android:windowTitleStyle" > @style /CustomWindowTitle</item>
  28. <itemname="android:windowTitleBackgroundStyle" > @style /CustomWindowTitleBackground</item>
  29. </style>
  30. </resources>

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android ActivitiyThread的建立
  2. 【android学习笔记】收藏的网上查找的and
  3. android google地图定位开发,且可以自由移
  4. :Android实现程序前后台切换效果
  5. Android(安卓)Jni代码示例讲解
  6. 如何在Android真机上检测是否有Google Ma
  7. 整理 酷炫 Android、Flutter 开源UI框架
  8. SSH服务器与Android通信(2)--Android客户
  9. Android(安卓)TV 焦点控制逻辑
  10. Activity的四种启动模式和onNewIntent()