android popupwindow在屏幕內水平居中

方案一:寫死window寬度,用屏幕大小減去window大小,X座標偏移量除以2 if (mPopupWindow == null) { PopupwinTransTypeBinding mBinding = DataBindingUtil.inflate(LayoutInflater.from(mFragment.mActivity), R.layout.popupwin_trans
相關文章
相關標籤/搜索