title: Why android popupwindow showAsDropDown offsetx is not effective?
body: <pre><code>popupWindow.showAsDropDown(morebutton, xOffset, yOffset);
  </code></pre>
  
  <p>No matter the value of xOffset, the popup is on the right side of the screen display</p>
  
  <pre><code>final PopupWindow popupWindow = new PopupWindow(DashboardActivity.applicationContext);
                          LayoutInflater inflater = (LayoutInflater) DashboardActivity.applicationContext.getSystemService(
                                  Context.LAYOUT_INFLATER_SERVICE);
  popupWindow.setFocusable(true);
                          popupWindow.setWidth(WindowManager.LayoutParams.WRAP_CONTENT);
                          popupWindow.setHeight(WindowManager.LayoutParams.WRAP_CONTENT);
                          popupWindow.setContentView(view);
                          popupWindow.setBackgroundDrawable(new ColorDrawable(
                                  android.graphics.Color.TRANSPARENT));
  popupWindow.showAsDropDown(morebutton, **-220**, -40);
  </code></pre>
  
  <p>No matter what I set the value offsetX, he is on the right side of the screen display</p>