How to add shadow to TextView on selection/focus
<p>My question is how to add a shadow to text when TextView is selected or View that TextView is in gets selected. For example I have a CheckedTextView which changes background according to type of selection. I also made a text selector which changes color on differents states. Now I would like to add a shadow when for example View gets selected. So it changes background color, text color and creates a shadow. This is my text selector:</p>

<pre><code>&lt;selector 
xmlns:android="http://schemas.android.com/apk/res/android"&gt;

&lt;item 
    android:state_focused="true" 
    android:state_pressed="false"       
    android:color="@android:color/white"
    style="@style/DarkShadow"/&gt;

&lt;item 
    android:state_focused="true" 
    android:state_pressed="true"            
    android:color="@android:color/white"
    style="@style/DarkShadow"/&gt;

&lt;item 
    android:state_focused="false" 
    android:state_pressed="true" 
    android:color="@android:color/white"
    style="@style/DarkShadow"/&gt;

&lt;item 
    android:color="@color/primary_text_light_disable_only"/&gt;
</code></pre>

<p></p>

<p>and style:</p>

<pre><code>&lt;style name="DarkShadow"&gt;   
    &lt;item name="android:shadowColor"&gt;#BB000000&lt;/item&gt;
    &lt;item name="android:shadowRadius"&gt;2.75&lt;/item&gt;
&lt;/style&gt;
</code></pre>

<p>Now text gets properly highlighted but no shadows appear. Does anyone know how to solve this?</p>
