styles.xml 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <resources>
  2. <!--
  3. Base application theme, dependent on API level. This theme is replaced
  4. by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
  5. -->
  6. <style name="AppBaseTheme" parent="android:Theme.Light">
  7. <!--
  8. Theme customizations available in newer API levels can go in
  9. res/values-vXX/styles.xml, while customizations related to
  10. backward-compatibility can go here.
  11. -->
  12. </style>
  13. <!-- Application theme. -->
  14. <style name="AppTheme" parent="AppBaseTheme">
  15. <!-- All customizations that are NOT specific to a particular API-level can go here. -->
  16. </style>
  17. <!-- popup window 显示消失动画-->
  18. <style name="PopWindowAnimStyle">
  19. <item name="android:windowShowAnimation">@anim/dialog_enter</item>
  20. <!-- 指定显示的动画xml -->
  21. <item name="android:windowHideAnimation">@anim/dialog_exit</item>
  22. <!-- 指定消失的动画xml -->
  23. </style>
  24. <style name="TransDialogStyle" parent="@android:style/Theme.Dialog">
  25. <item name="android:windowFrame">@null</item>
  26. <item name="android:windowIsFloating">true</item>
  27. <item name="android:windowIsTranslucent">true</item>
  28. <item name="android:windowNoTitle">true</item>
  29. <!-- <item name="android:background">@android:color/transparent</item> -->
  30. <item name="android:background">@android:color/transparent</item>
  31. <item name="android:windowBackground">@android:color/transparent</item>
  32. <item name="android:backgroundDimEnabled">true</item>
  33. <item name="android:backgroundDimAmount">0.5</item>
  34. <item name="android:windowFullscreen">true</item>
  35. </style>
  36. <style name="WhiteDialogStyle" parent="@android:style/Theme.Dialog">
  37. <item name="android:windowFrame">@null</item>
  38. <item name="android:windowIsFloating">true</item>
  39. <item name="android:windowIsTranslucent">true</item>
  40. <item name="android:windowNoTitle">true</item>
  41. <!-- <item name="android:background">@android:color/transparent</item> -->
  42. <item name="android:background">@android:color/transparent</item>
  43. <item name="android:windowBackground">@drawable/popup_bg</item>
  44. <item name="android:backgroundDimEnabled">true</item>
  45. <item name="android:backgroundDimAmount">0.5</item>
  46. <item name="android:windowFullscreen">true</item>
  47. </style>
  48. <!-- my loading dialog -->
  49. <style name="MyDialogStyle">
  50. <item name="android:windowBackground">@android:color/transparent</item>
  51. <item name="android:windowFrame">@null</item>
  52. <item name="android:windowNoTitle">true</item>
  53. <item name="android:windowIsFloating">true</item>
  54. <item name="android:windowIsTranslucent">true</item>
  55. <item name="android:windowContentOverlay">@null</item>
  56. <item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item>
  57. <item name="android:backgroundDimEnabled">true</item>
  58. </style>
  59. <style name="SearchDeviceTransparent" parent="@android:style/Theme.Dialog">
  60. <item name="android:windowBackground">@android:color/transparent</item>
  61. <item name="android:windowNoTitle">true</item>
  62. <item name="android:windowFullscreen">true</item>
  63. <item name="android:windowIsTranslucent">true</item>
  64. <item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item>
  65. <item name="android:gravity">center</item>
  66. </style>
  67. <style name="Base.Widget.AppCompat.ProgressBar.Horizontal" parent="android:Widget.Material.ProgressBar.Horizontal">
  68. </style>
  69. <style name="TransparentTheme" parent="@android:style/Theme.Translucent.NoTitleBar.Fullscreen">
  70. <!-- <item name="android:windowAnimationStyle">@null</item>-->
  71. <!-- <item name="android:windowBackground">@android:color/transparent</item>-->
  72. <!-- <item name="android:windowIsTranslucent">true</item>-->
  73. <!-- <item name="android:windowTranslucentStatus">true</item>-->
  74. </style>
  75. </resources>