styles.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <resources>
  3. <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
  4. <item name="colorPrimary">@color/colorPrimary</item>
  5. <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
  6. <item name="colorAccent">@color/colorAccent</item>
  7. <item name="android:windowBackground">@color/color_f8f8f8</item>
  8. </style>
  9. <style name="SplashTheme" parent="AppTheme">
  10. <item name="android:windowBackground">@drawable/bg_splash</item>
  11. <item name="android:statusBarColor">@color/transparent</item>
  12. </style>
  13. <style name="NavPage">
  14. <item name="android:layout_width">fill_parent</item>
  15. <item name="android:layout_height">fill_parent</item>
  16. <item name="android:orientation">vertical</item>
  17. <item name="android:gravity">center_horizontal</item>
  18. <!-- <item name="android:background">@drawable/nav_page</item> -->
  19. <item name="android:background">#FFE1E8EB</item>
  20. </style>
  21. <style name="tab_layout_style" parent="TextAppearance.Design.Tab">
  22. <item name="textAllCaps">false</item>
  23. <item name="android:textSize">@dimen/sp_14</item>
  24. </style>
  25. <!-- 自定义对话框. -->
  26. <style name="Dialog" mce_bogus="1" parent="Theme.AppCompat.Dialog">
  27. <item name="android:windowBackground">@color/transparent</item>
  28. <item name="windowNoTitle">true</item>
  29. <item name="android:windowIsFloating">true</item>
  30. <item name="android:windowAnimationStyle">@style/DialogAnimStyle</item>
  31. </style>
  32. <style name="DialogAnimStyle" parent="@android:style/Animation.Activity">
  33. <item name="android:windowEnterAnimation">@anim/modal_in</item>
  34. <item name="android:windowExitAnimation">@anim/modal_out</item>
  35. <item name="android:activityOpenEnterAnimation">@anim/modal_in</item>
  36. <item name="android:activityOpenExitAnimation">@anim/modal_out</item>
  37. <item name="android:activityCloseEnterAnimation">@anim/modal_in</item>
  38. <item name="android:activityCloseExitAnimation">@anim/modal_out</item>
  39. </style>
  40. <style name="HomeRatingBar" parent="@android:style/Widget.RatingBar">
  41. <item name="android:progressDrawable">@drawable/home_rating_bar</item>
  42. </style>
  43. <style name="HomeRatingBar1" parent="@android:style/Widget.RatingBar">
  44. <item name="android:progressDrawable">@drawable/home_rating_bar</item>
  45. </style>
  46. <style name="DialogStyle" parent="@android:style/Theme.Dialog">
  47. <!-- 背景透明 -->
  48. <item name="android:windowBackground">@android:color/transparent</item>
  49. <item name="android:windowContentOverlay">@null</item>
  50. <!-- 浮于Activity之上 -->
  51. <item name="android:windowIsFloating">true</item>
  52. <!-- 边框 -->
  53. <item name="android:windowFrame">@null</item>
  54. <!-- Dialog以外的区域模糊效果 -->
  55. <item name="android:backgroundDimEnabled">true</item>
  56. <!-- 无标题 -->
  57. <item name="android:windowNoTitle">true</item>
  58. <!-- 半透明 -->
  59. <item name="android:windowIsTranslucent">true</item>
  60. </style>
  61. <style name="MyBottomDialogStyle" parent="@android:style/Theme.Holo.Dialog">
  62. <!-- 是否有边框 -->
  63. <item name="android:windowFrame">@null</item>
  64. <!--是否在悬浮Activity之上 -->
  65. <item name="android:windowIsFloating">true</item>
  66. <!-- 标题 -->
  67. <item name="android:windowNoTitle">true</item>
  68. <!--阴影 -->
  69. <item name="android:windowIsTranslucent">true</item><!--半透明-->
  70. <!--背景透明-->
  71. <item name="android:windowBackground">@android:color/transparent</item>
  72. <item name="android:backgroundDimAmount">0.6</item>
  73. <!-- 还可以加入一些弹出和退出的动画 (lan)-->
  74. <item name="android:windowAnimationStyle">@style/BottomAnimation</item>
  75. </style>
  76. <style name="full_dialog_style" parent="@android:style/Theme.Holo.Dialog">
  77. <!-- 是否有边框 -->
  78. <item name="android:windowFrame">@null</item>
  79. <item name="android:windowFullscreen">true</item>
  80. <!--是否在悬浮Activity之上 -->
  81. <item name="android:windowIsFloating">true</item>
  82. <!-- 标题 -->
  83. <item name="android:windowNoTitle">true</item>
  84. <!--阴影 -->
  85. <item name="android:windowIsTranslucent">true</item><!--半透明-->
  86. <!--背景透明-->
  87. <item name="android:windowBackground">@android:color/transparent</item>
  88. <item name="android:backgroundDimAmount">0</item>
  89. </style>
  90. </resources>