daily pastebin goal
78%
SHARE
TWEET

Untitled

a guest Oct 22nd, 2018 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <style name="AppTheme" parent="Theme.AppCompat.DayNight">
  2.         <!--标题栏的颜色-->
  3.         <item name="colorPrimary">@color/colorPrimary</item>
  4.         <!--状态栏的颜色-->
  5.         <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
  6.         <!--控件的选中颜色,即checked或selected状态的颜色。-->
  7.         <item name="colorAccent">@color/colorAccent</item>
  8.     </style>
  9.  
  10.     <style name="AppTheme.NoActionBar">
  11.         <item name="windowActionBar">false</item>
  12.         <item name="windowNoTitle">true</item>
  13.     </style>
  14.  
  15.     <style name="AppTheme.NoActionBar.FullScreen" parent="AppTheme.NoActionBar">
  16.         <item name="android:windowFullscreen">true</item>
  17.         <item name="android:windowContentOverlay">@null</item>
  18.     </style>
  19.  
  20.     <style name="Theme.ToolBar.Menu" parent="ThemeOverlay.AppCompat.Dark.ActionBar">
  21.         <!-- 设置-弹窗的背景-颜色-->
  22.         <item name="android:colorBackground">@color/common_bg</item>
  23.         <!-- 字体的颜色-->
  24.         <item name="android:textColor">@color/common_h1</item>
  25.         <!-- 字体大小-->
  26.         <item name="android:textSize">16sp</item>
  27.         <!-- 用于替换菜单的三个小白点,换成自已的图片-->
  28.         <item name="actionOverflowButtonStyle">@style/ActionButton.Overflow.Menu</item>
  29.         <!--用于控制menu弹出的位置,位于toolbar的下面,而不是上面-->
  30.         <item name="actionOverflowMenuStyle">@style/OverflowMenuStyle</item>
  31.         <!-- 用于修改item默认的分割线-->
  32.         <item name="android:dropDownListViewStyle">@style/dropDownStyle</item>
  33.         <item name="dropDownListViewStyle">@style/dropDownStyle</item>
  34.     </style>
  35.  
  36.     <style name="ActionButton.Overflow.Menu" parent="android:style/Widget.Holo.Light.ActionButton.Overflow">
  37.         <item name="android:src">@drawable/abc_ic_menu_moreoverflow_mtrl_alpha</item>
  38.     </style>
  39.  
  40.     <!--把该属性改为false即可使menu位置位于toolbar之下-->
  41.     <style name="OverflowMenuStyle" parent="Widget.AppCompat.Light.PopupMenu.Overflow">
  42.         <item name="overlapAnchor">false</item>
  43.     </style>
  44.  
  45.     <!--用于修改popmenu的分割线-->
  46.     <style name="dropDownStyle" parent="android:style/Widget.Holo.ListView.DropDown">
  47.         <item name="android:listSelector">@drawable/touch_bg</item>
  48.         <item name="android:divider">@color/common_divider_narrow</item>
  49.         <item name="android:dividerHeight">0.5dp</item>
  50.     </style>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top