title: How to apply a transparency (focus?) ON pressing any item (as Google does)?
body: <p>In the application "Google Play", we can see that if you click on any item (LinearLayout, button, imageview, textview ...) this has on it a blue coat.</p>
  
  <p>Being above is not a simple background with android: state_pressed = "true" android: state_focused = "true" ...</p>
  
  <p>Any idea how to apply that effect?</p>
  
  <p>For example, I have a LinearLayout with multiple images and text.
  This LinearLayout acts as a "button", my intention is that pressing change in appearance having a blue layer on top, as does Google.</p>
  
  <p>I typically use custom background but that applies back and not over.</p>
  
  <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;item android:state_pressed="true" android:state_focused="true" android:drawable="@drawable/focus_blue_default" /&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>And <strong>focus_blue_default.xml</strong>:</p>
  
  <pre><code>&lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;item&gt;
  &lt;shape android:shape="rectangle"&gt;
  &lt;solid android:color="#8051C9EC" /&gt;
  &lt;/shape&gt;
  &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/8njyI.png" alt="enter image description here"></p>