Does Android home screen widget support background selector in a TextView?
<p>I have a TextView in my home screen widget. Can I use the following selector as the background of the TextView so the TextView can be highlighted when clicked? I know I can do it in Activity, but I am not sure about home screen widget. Thanks.</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    &lt;item android:state_pressed="true"
       android:drawable="@drawable/button_selected" /&gt; &lt;!-- pressed --&gt;
    &lt;item android:state_pressed="false"
       android:drawable="@drawable/beige_button" /&gt; &lt;!-- not pressed --&gt;
    &lt;item android:drawable="@drawable/beige_button" /&gt; &lt;!-- default --&gt;
&lt;/selector&gt;
</code></pre>
