finalView popupView = inflater.inflate(R.layout.popup_entry_layout,null); // 創(chuàng)建PopupWindow 對象 finalPopupWindow popupWindow =newPopupWindow(popupView,400,100);// 第二、第三個參數(shù)用來設(shè)置彈窗的大小,也可以用WRAP_CONTENT // 設(shè)置位置 popupWindow.showAtLocation(popupView, Gravity.NO_GRAVITY,x,y);...
www.dbjr.com.cn/article/1271...htm 2025-6-7