调整礼物UI

新增新人签到弹框
This commit is contained in:
zlzw 2022-10-12 16:37:52 +08:00
parent 99308f5ac5
commit 9de86e545b
2 changed files with 13 additions and 2 deletions

View File

@ -189,6 +189,7 @@ public class LiveHDDialogFragment extends AbsDialogFragment {
}); });
} }
} }
mWebView.setVisibility(View.INVISIBLE);
} }
private long webHeight = 0; private long webHeight = 0;
@ -291,6 +292,16 @@ public class LiveHDDialogFragment extends AbsDialogFragment {
@JavascriptInterface @JavascriptInterface
public void setHeight(String height, String width) { public void setHeight(String height, String width) {
if("0".equals(height)){
return;
}
Handler handler=new Handler(Looper.getMainLooper());
handler.post(()->{
ViewGroup.LayoutParams params = mWebView.getLayoutParams();
params.height=DpUtil.dp2px(Integer.parseInt(height));
mWebView.setLayoutParams(params);
mWebView.setVisibility(View.VISIBLE);
});
} }
} }

View File

@ -368,8 +368,8 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
+ CommonAppConfig.getInstance().getToken() + "&anchorUid=" + mLiveUid; + CommonAppConfig.getInstance().getToken() + "&anchorUid=" + mLiveUid;
bundle.putString("url", url); bundle.putString("url", url);
bundle.putInt("show_type", 0); bundle.putInt("show_type", 0);
bundle.putInt("height",DpUtil.dp2px(530)); bundle.putInt("height",DpUtil.dp2px(1));
bundle.putBoolean("banScrollY",true); // bundle.putBoolean("banScrollY",true);
LiveHDDialogFragment liveHDDialogFragment = new LiveHDDialogFragment(); LiveHDDialogFragment liveHDDialogFragment = new LiveHDDialogFragment();
liveHDDialogFragment.setArguments(bundle); liveHDDialogFragment.setArguments(bundle);
liveHDDialogFragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveHDDialogFragment"); liveHDDialogFragment.show(((LiveAudienceActivity) mContext).getSupportFragmentManager(), "LiveHDDialogFragment");