title: autocompletetextview not working inside popup window
body: <p>I am new to android and i am trying to integrate <code>auto complete text view</code> inside popup window. But the auto complete action not working inside the popup window. If i placed the auto complete text view outside the popup auto complete works fine.</p>
  
  <p><strong>Xml code of popup window:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     android:layout_gravity="center_horizontal"
     android:orientation="vertical" &gt;
  
     &lt;LinearLayout
         android:id="@+id/popup"
         android:layout_width="300dp"
         android:layout_height="match_parent"
         android:layout_gravity="center_horizontal"
         android:gravity="center_horizontal"
         android:orientation="vertical"
         tools:ignore="UselessParent" &gt;
  
         &lt;FrameLayout
       android:id="@+id/innertop"
       android:layout_width="match_parent"
       android:layout_height="55dp"
          &gt;
  
  
       &lt;AutoCompleteTextView
           android:id="@+id/listitem"
           style="@style/CodeFont"
           android:layout_width="match_parent"
           android:layout_height="wrap_content"
           android:layout_marginBottom="4dp"
           android:background="@drawable/border"
           android:hint="@string/search_products_"
           android:textSize="12sp"
           android:typeface="serif" /&gt;
  
       &lt;Button
           android:id="@+id/searchbtn1"
           android:layout_width="32dp"
           android:layout_height="32dp"
           android:layout_gravity="center_vertical|right"
           android:layout_marginRight="10dp"
           android:layout_marginBottom="1dp"
           android:background="@drawable/search_icon" /&gt;
  
   &lt;/FrameLayout&gt;
  
     &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>Activity java code:</strong></p>
  
  <pre><code>final TextView btnOpenPopup1 = (TextView)findViewById(R.id.textView6);
                                 btnOpenPopup1.setOnClickListener(new TextView.OnClickListener(){
  
                         @Override
                            public void onClick(View arg0) {
                             LayoutInflater layoutInflater
                              = (LayoutInflater)getBaseContext()
                               .getSystemService(LAYOUT_INFLATER_SERVICE);  
                             View popupView = layoutInflater.inflate(R.layout.login_popup, null);  
                                      final PopupWindow popupWindow = new PopupWindow(
                                        popupView,
                                        LayoutParams.WRAP_CONTENT,  
                                              LayoutParams.WRAP_CONTENT); 
  
                                      popupWindow.setFocusable(true);
                                      popupWindow.showAsDropDown(btnOpenPopup, -50, -70);
  </code></pre>
  
  <p>I have searched in Google. I can find solutions for alert dialog box but not for modal window. How to fix this?</p>