textview background color is not changing on click in popupwindow
<p>I am using PopUpwindow with textviews in it. Problem is When i click any of the textvies the background color is not changing though it is changing when the textview is focused but not on click.</p>

<p>After clicking i am dismissing the popupwindow , and if i don't dismiss the popupwindow then the background color changes according to the selector :</p>

<p>This is my textview background selector:</p>

<pre><code>&lt;item android:state_focused="true" android:drawable="@drawable/focused" /&gt;    
&lt;item android:state_pressed="true" android:drawable="@drawable/pressed" /&gt;
&lt;item android:drawable="@drawable/priornone" /&gt; &lt;!-- default --&gt; &lt;/selector&gt; 
</code></pre>

<p>in my popupwindow all i am doing is this :</p>

<pre><code>TextView manage_list = (TextView)popupView.findViewById(R.id.manage_lists);
manage_list.setOnClickListener(new View.OnClickListener(){

public void onClick(View v) 
{

  Intent myIntent = new Intent(v.getContext(),ManageList.class);
      popupWindow.dismiss();
  startActivity(myIntent);

 }});
</code></pre>

<p>layout file for popupwindow:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;

  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"
  android:background="@drawable/pop_menu_bg"
 android:orientation="vertical"
    &gt;

&lt;TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:id="@+id/manage_lists"
    android:text="Manage lists"
    android:background="@drawable/my_drawable"
 &gt;
 &lt;/TextView&gt;


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

<p>Its quite strange behaviour everything works well if i don't dismiss the popupwindow but if i dismiss the popupwindow on click textview background doesn't changes.</p>

<p>What am i doing Wrong? Any help will be appreciated. </p>
