float wechatIconX = ivWechat.getX();
int weChatIconWidth = ivWechat.getWidth();
float wechatIconCenterX = wechatIconX + weChatIconWidth / 2;
float popupWidthPX = getResources().getDimension(R.dimen.wechatPopUp_width);
ivWechatPopUp.setX(wechatIconCenterX - popupWidthPX / 2);