title: edittext not taking input when popupwindow is open
body: <p>i have a edittext when i click on the edittext the popup window appears but when i try to type anything in edittext it does not take the input 
  i have to dismiss the popup and then have to type</p>
  
  <pre><code>   PopupWindow popUp = popupWindowsort(v, mainproductlist);
              popUp.showAsDropDown(v, 0, 0);
  
     private PopupWindow popupWindowsort(View v, List catalog) {
  
      // initialize a pop up window type
      PopupWindow popupWindow = new PopupWindow(v, 
     ViewGroup.LayoutParams.WRAP_CONTENT, 
     ViewGroup.LayoutParams.WRAP_CONTENT, 
     true);
  
       ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(getContext(), 
    android.R.layout.simple_dropdown_item_1line, catalog);
      // the drop down list is a list view
      ListView listViewSort = new ListView(getContext());
      // set our adapter and pass our pop up window contents
      listViewSort.setAdapter(adapter);
  
      popupWindow.setBackgroundDrawable(new ColorDrawable(Color.WHITE));
      // some other visual settings for popup window
  //        popupWindow.setFocusable(true);
   //        popupWindow.update();
      popupWindow.setWidth(WindowManager.LayoutParams.MATCH_PARENT);
      // 
  
  
   popupWindow.setBackgroundDrawable(getResources().getDrawable
  (R.drawable.white) 
   );
      popupWindow.setHeight(WindowManager.LayoutParams.WRAP_CONTENT);
  
      // set the listview as popup content
      popupWindow.setContentView(listViewSort);
  
      return popupWindow;
    }
  </code></pre>