themes.xml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <resources>
  3. <!-- For Preference -->
  4. <style name="MMPreference">
  5. <item name="android:layout">@layout/mm_preference</item>
  6. </style>
  7. <style name="MMPreferenceScreen">
  8. <item name="android:layout">@layout/mm_preference</item>
  9. <item name="android:widgetLayout">@layout/mm_preference_screen</item>
  10. </style>
  11. <style name="MMPreference.Child">
  12. <item name="android:layout">@layout/mm_preference_child</item>
  13. </style>
  14. <style name="MMPreference.Information">
  15. <item name="android:layout">@layout/mm_preference</item>
  16. <item name="android:enabled">false</item>
  17. <item name="android:shouldDisableView">false</item>
  18. </style>
  19. <style name="MMPreference.Catagory">
  20. <item name="android:layout">@layout/mm_preference_catalog</item>
  21. </style>
  22. <style name="MMPreference.CheckBoxPreference">
  23. <item name="android:widgetLayout">@layout/mm_preference_checkbox</item>
  24. </style>
  25. <style name="MMPreference.RingtonePreference">
  26. <item name="android:ringtoneType">ringtone</item>
  27. <item name="android:showSilent">true</item>
  28. <item name="android:showDefault">true</item>
  29. </style>
  30. <style name="MMPreference.DialogPreference.YesNoPreference">
  31. <item name="android:positiveButtonText">@android:string/yes</item>
  32. <item name="android:negativeButtonText">@android:string/no</item>
  33. </style>
  34. <style name="MMPreference.DialogPreference">
  35. <item name="android:positiveButtonText">@android:string/ok</item>
  36. <item name="android:negativeButtonText">@android:string/cancel</item>
  37. </style>
  38. <style name="MMPreference.DialogPreference.EditTextPreference">
  39. <item name="android:dialogLayout">@layout/mm_preference_dialog_edittext</item>
  40. </style>
  41. <style name="MMListView">
  42. <item name="android:divider">@null</item>
  43. <item name="android:dividerHeight">0px</item>
  44. <item name="android:scrollbars">vertical</item>
  45. <item name="android:listSelector">@drawable/list_selector_background</item>
  46. <!-- cause some m9 crash -->
  47. <!-- <item name="android:overScrollMode">always</item> -->
  48. </style>
  49. <!-- Theme For Preference -->
  50. <style name="MMTheme.Basic" parent="android:Theme">
  51. <item name="android:listViewStyle">@style/MMListView</item>
  52. <item name="android:windowNoTitle">true</item>
  53. <item name="android:windowContentOverlay">@null</item>
  54. <item name="android:preferenceScreenStyle">@style/MMPreferenceScreen</item>
  55. <item name="android:preferenceStyle">@style/MMPreference</item>
  56. <item name="android:preferenceLayoutChild">@style/MMPreference.Child</item>
  57. <item name="android:preferenceInformationStyle">@style/MMPreference.Information</item>
  58. <item name="android:preferenceCategoryStyle">@style/MMPreference.Catagory</item>
  59. <item name="android:checkBoxPreferenceStyle">@style/MMPreference.CheckBoxPreference</item>
  60. <item name="android:ringtonePreferenceStyle">@style/MMPreference.RingtonePreference</item>
  61. <item name="android:yesNoPreferenceStyle">@style/MMPreference.DialogPreference.YesNoPreference</item>
  62. <item name="android:dialogPreferenceStyle">@style/MMPreference.DialogPreference</item>
  63. <item name="android:editTextPreferenceStyle">@style/MMPreference.DialogPreference.EditTextPreference</item>
  64. <item name="android:checkboxStyle">@style/MMCheckBox</item>
  65. </style>
  66. <style name="MMTheme.Preference" parent="MMTheme.Basic">
  67. <item name="android:windowNoTitle">true</item>
  68. <item name="android:windowTitleSize">0dp</item>
  69. </style>
  70. <style name="MMTheme.Search" parent="MMTheme.Basic">
  71. <item name="android:windowBackground">@color/semitransparent</item>
  72. <item name="android:windowNoTitle">true</item>
  73. <item name="android:windowIsTranslucent">true</item>
  74. <item name="android:windowAnimationStyle">@+android:style/Animation.Translucent</item>
  75. </style>
  76. <style name="MMTheme.Launcher" parent="MMTheme.Basic">
  77. <item name="android:windowNoTitle">true</item>
  78. <item name="android:windowIsTranslucent">true</item>
  79. <item name="android:background">@drawable/mm_trans</item>
  80. <item name="android:windowBackground">@drawable/mm_trans</item>
  81. <item name="android:windowTitleSize">0dp</item>
  82. </style>
  83. <style name="MMTheme.DataSheet" parent="@android:style/Theme.Dialog">
  84. <item name="android:windowFrame">@null</item>
  85. <item name="android:windowIsFloating">true</item>
  86. <item name="android:windowIsTranslucent">true</item>
  87. <item name="android:windowNoTitle">true</item>
  88. <item name="android:background">@drawable/mm_trans</item>
  89. <item name="android:windowBackground">@drawable/mm_trans</item>
  90. <item name="android:backgroundDimEnabled">true</item>
  91. <item name="android:windowAnimationStyle">@style/DataSheetAnimation</item>
  92. </style>
  93. <style name="noBgFullScreen">
  94. <item name="android:windowNoTitle">true</item>
  95. <item name="android:windowFullscreen">true</item>
  96. <item name="android:windowBackground">@android:color/transparent</item>
  97. <item name="android:colorBackgroundCacheHint">@null</item>
  98. <item name="android:windowIsTranslucent">true</item>
  99. <item name="android:windowContentOverlay">@null</item>
  100. </style>
  101. </resources>