title: Android Listview in PopupWindow onitemclick not work on some device
body: <p>My ListView is inside PopupWindow.</p>
  
  <p>When i shown PopupWindow and click on Listview row in device ASUS K00z fonepad worke very well.</p>
  
  <p>But in HTC Z715e is not working (onitem click event not fired)</p>
  
  <p>1.This is my listview item layout</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/ln_testpopitemcon"
      android:orientation="horizontal"
      android:layout_width="match_parent"
      android:layout_height="52dp"
      android:background="#3b8ed4"
      android:descendantFocusability="blocksDescendants"&gt;
  
  &lt;ImageView
      android:id="@+id/img_testiconmenu"
      android:layout_margin="10dp"
      android:layout_width="32dp"
      android:layout_height="32dp"
      android:src="@drawable/radio_selected"
      android:clickable="false"
      android:focusable="false"
      android:focusableInTouchMode="false"/&gt;
  
      &lt;TextView
          android:id="@+id/tv_testtitlemenu"
          android:gravity="left|center_vertical"
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          android:clickable="false"
          android:focusable="false"
          android:focusableInTouchMode="false"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>2.This is my popup layout</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/ln_testpopocontainer"
      android:orientation="vertical" android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;ListView
          android:paddingLeft="2dp"
          android:paddingRight="2dp"
          android:paddingBottom="2dp"
          android:id="@+id/lv_testpop"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:choiceMode="singleChoice"
          android:dividerHeight="2dp"
          android:background="#00000000"
          android:orientation="vertical"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>3.This is my adapter</p>
  
  <pre><code>public class testmenuadapter extends BaseAdapter{
      private Context context;
      private ArrayList&lt;MenuInfo&gt; MenuList;
      private LayoutInflater Layf;
  
      public testmenuadapter(Context context, ArrayList&lt;MenuInfo&gt; menuList){
          this.context = context;
          this.MenuList = menuList;
          this.Layf = LayoutInflater.from(context);
      }
  
      @Override
      public int getCount() {
          return MenuList.size();
      }
  
      @Override
      public Object getItem(int position) {
          return MenuList.get(position);
      }
  
      @Override
      public long getItemId(int position) {
          return position;
      }
  
      @Override
      public View getView(int position, View convertView, ViewGroup parent) {
          ViewHolder holder = null;
          if (convertView == null) {
              holder = new ViewHolder();
              convertView = Layf.inflate(R.layout.testpopoitem, null);
  
              holder.img_testiconmenu = (ImageView)convertView.findViewById(R.id.img_testiconmenu);
              holder.tv_testtitlemenu = (TextView)convertView.findViewById(R.id.tv_testtitlemenu);
              convertView.setTag(holder);
          }
          else
          {
              holder = (ViewHolder)convertView.getTag();
          }
  
          MenuInfo info = MenuList.get(position);
  
          if(info != null) {
              if (holder.tv_testtitlemenu != null) {
                  holder.tv_testtitlemenu.setText(info.getTitle());
              }
          }
  
          return convertView;
      }
  
      public class ViewHolder
      {
          ImageView img_testiconmenu;
          TextView tv_testtitlemenu;
      }
  }
  </code></pre>
  
  <p>4.This is code i use to create and show popup</p>
  
  <pre><code>final View actionview = inflater.inflate(R.layout.testpopo, (ViewGroup)getActivity().findViewById(R.id.ln_testpopocontainer));
  this.testpopup = new PopupWindow(actionview, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
  this.testpopup.setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));
  this.testpopup.setOutsideTouchable(false);
  this.testpopup.setAnimationStyle(R.style.Animation);
  
  this.testpopuplistview = (ListView)this.testpopup.getContentView().findViewById(R.id.lv_testpop);
  
  this.testmenupopup = new ArrayList&lt;MenuInfo&gt;();
  this.testmenupopup.add(new MenuInfo("aaa", "AAA", 0, 0, false));
  this.testmenupopup.add(new MenuInfo("bbb", "BBB", 0, 0, false));
  this.testmenupopup.add(new MenuInfo("ccc", "CCC", 0, 0, false));
  
  this.testpopadapter = new testmenuadapter(getActivity(), this.testmenupopup);
  
  this.testpopuplistview.setAdapter(this.testpopadapter);
  this.testpopuplistview.setOnItemClickListener(new AdapterView.OnItemClickListener() {
      @Override
      public void onItemClick(AdapterView&lt;?&gt; adapterView, View view, int position, long l) {
          Toast.makeText(getActivity(), ((MenuInfo)adapterView.getItemAtPosition(position)).getTitle(), Toast.LENGTH_LONG).show();
      }
  });
  
  Button btnshowpop = (Button)findViewById(R.id.btn_showpop);
  btnshowpop.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View view) {
          testpopup.showAtLocation(rootView, Gravity.CENTER, 0, 0);
      }
  });
  </code></pre>
  
  <p>How to solve it's</p>
  
  <p><strong>EDIT
  i can solve my problem.</strong></p>
  
  <p>replace</p>
  
  <pre><code>this.testpopup = new PopupWindow(actionview, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
  </code></pre>
  
  <p>with</p>
  
  <pre><code>this.testpopup = new PopupWindow(actionview, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT, true);
  </code></pre>
  
  <p>sorry for waste time i'm very stupid.</p>