tv_open.post(new Runnable() {
@Override
public void run() {
showVipPop();
}
});
private void showVipPop() {
if (windowVip == null) {
View contentView = LayoutInflater.from(mContext).inflate(R.layout.item_pop_vip, null, false);
windowVip = new PopupWindow(contentView, ListPopupWindow.WRAP_CONTENT, ListPopupWindow.WRAP_CONTENT, true);
windowVip.setBackgroundDrawable(new ColorDrawable());
windowVip.setOutsideTouchable(true);
windowVip.setTouchable(true);
}
windowVip.showAsDropDown(baseTitle.getTextCall(), 0, 20);
}
android view.post()加载完成,PopupWindow显示的时机
最新推荐文章于 2023-12-08 15:20:50 发布