SHARE
TWEET

Custom Action Bar Styles

a guest Oct 13th, 2013 219 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     <style name="CustomActionButton" parent="android:style/Widget.Holo.Light.ActionButton">
  2.         <item name="android:layout_height">match_parent</item>
  3.         <item name="android:layout_width">0dp</item>
  4.         <item name="android:layout_weight">1</item>
  5.         <item name="android:focusable">true</item>
  6.         <item name="android:orientation">horizontal</item>
  7.     </style>
  8.  
  9.     <style name="ActionButtonText">
  10.         <item name="android:layout_width">wrap_content</item>
  11.         <item name="android:layout_height">wrap_content</item>
  12.         <item name="android:textAppearance">?android:attr/actionMenuTextAppearance</item>
  13.         <item name="android:textColor">?android:attr/actionMenuTextColor</item>
  14.         <item name="android:orientation">horizontal</item>
  15.         <item name="android:singleLine">true</item>
  16.         <item name="android:ellipsize">none</item>
  17.         <item name="android:padding">4dp</item>
  18.     </style>
  19.  
  20.     <style name="ActionButtonImage">
  21.         <item name="android:layout_height">wrap_content</item>
  22.         <item name="android:layout_width">wrap_content</item>
  23.         <item name="android:padding">4dp</item>
  24.     </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