title: Lollipop: Disabled button --> which style?
body: <p>I tried to track down, how <strong>Lollipop</strong> displays a button, which is disabled with <code>android:enabled="false"</code> in the layout file.</p>
  
  <h2>Holo</h2>
  
  <p>With <strong>Holo</strong>, it's easy: In the styles_holo.xml, I find the style Widget.Holo.Button, which gives me a reference to @drawable/btn_default_holo_dark. There I find the selector:</p>
  
  <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;item android:state_window_focused="false" android:state_enabled="true"
  android:drawable="@drawable/btn_default_normal_holo_dark" /&gt;
  &lt;item android:state_window_focused="false" android:state_enabled="false"
  android:drawable="@drawable/btn_default_disabled_holo_dark" /&gt;
  &lt;item android:state_pressed="true"
  android:drawable="@drawable/btn_default_pressed_holo_dark" /&gt;
  &lt;item android:state_focused="true" android:state_enabled="true"
  android:drawable="@drawable/btn_default_focused_holo_dark" /&gt;
  &lt;item android:state_enabled="true"
  android:drawable="@drawable/btn_default_normal_holo_dark" /&gt;
  &lt;item android:state_focused="true"
  android:drawable="@drawable/btn_default_disabled_focused_holo_dark" /&gt;
  &lt;item
  android:drawable="@drawable/btn_default_disabled_holo_dark" /&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <h2>Lollipop</h2>
  
  <p>When I try to apply the same logic to Lollipop, I got stuck:</p>
  
  <p>In styles_material.xml I find the style <code>&lt;style name="Widget.Material.Button"&gt;</code> where I find the reference to <code>&lt;item name="background"&gt;@drawable/btn_default_material&lt;/item&gt;</code>. But there is no selector??!! Instead I find:</p>
  
  <pre><code>&lt;ripple xmlns:android="http://schemas.android.com/apk/res/android"
  android:color="?attr/colorControlHighlight"&gt;
  &lt;item android:drawable="@drawable/btn_default_mtrl_shape" /&gt;
  &lt;/ripple&gt;
  </code></pre>
  
  <p>Could someone please explain, which specific style Lollipop uses for a disabled button.
  Thanks a lot!</p>
  
  <h3><em>Edit</em></h3>
  
  <p>I can partially answer myself: In <code>@drawable/btn_default_mtrl_shape</code> I find a reference to <code>&lt;solid android:color="?attr/colorButtonNormal" /&gt;</code>, which in turn points to <code>@color/btn_default_material_light</code>, which includes a selector:</p>
  
  <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;item android:state_enabled="false"
  android:alpha="@dimen/disabled_alpha_material_light"
  android:color="@color/button_material_light"/&gt;
  &lt;item android:color="@color/button_material_light"/&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>But that alpha value only explains half of it. Somehow Lollipop also set the elevation down to 0?</p>