Hover in Android ,where can i use this?
<p>how to use the hovering in android.Is there any tutorials available to demonstrate this..(Apidemo hovering is not succeed).Please share it.</p>

<p>Thanks,</p>

<p>[I am new to android]
I got the answer from the above post and api demo samples.</p>

<p>I achieved the hovering in the following way:</p>

<p>Device : <code>Asus Transformer_Prime_TF201</code> with touchpad</p>

<p>main.xml :</p>

<pre><code>&lt;Button
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:background="@drawable/hover_background"
    android:text="@string/hover_button" /&gt;
</code></pre>

<p>hover_background.xml  :</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:drawable="@drawable/button_img_focussed"                        
            android:state_hovered="true"       /&gt;
        &lt;item android:drawable="@drawable/button_img_regular"/&gt;

    &lt;/selector&gt;
</code></pre>

<p>Thanks everyone..........</p>
