Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isViewMode=true模式时,希望在指定view上加,而不是在activity上加 #1143

Open
wlingf opened this issue May 30, 2023 · 0 comments

Comments

@wlingf
Copy link

wlingf commented May 30, 2023

XPopup版本
如2.9.19

手机系统和型号
华为Mate20 Android 10

描述你的问题
isViewMode=true模式时,希望在指定view上加,而不是在activity上加
//view实现
ViewGroup decorView = (ViewGroup) XPopupUtils.context2Activity(this).getWindow().getDecorView();
if(getParent()!=null) ((ViewGroup)getParent()).removeView(this);
decorView.addView(this, getLayoutParams());
希望decortview 能有外部传入

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant