|
@@ -64,6 +64,7 @@ import com.cooleshow.base.utils.LogUtils;
|
|
|
import com.cooleshow.base.utils.MyFileUtils;
|
|
|
import com.cooleshow.base.utils.NetworkUtil;
|
|
|
import com.cooleshow.base.utils.PermissionUtils;
|
|
|
+import com.cooleshow.base.utils.ScreenUtils;
|
|
|
import com.cooleshow.base.utils.ToastUtil;
|
|
|
import com.cooleshow.base.utils.UriUtils;
|
|
|
import com.cooleshow.base.utils.WebParamsUtils;
|
|
@@ -1193,11 +1194,15 @@ public class HtmlActivity extends BaseActivity<ActivityHtml1Binding> implements
|
|
|
callback.onCustomViewHidden();
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
+ LOG.i("w:"+view.getWidth());
|
|
|
+ LOG.i("h:"+view.getHeight());
|
|
|
mCustomView = view;
|
|
|
mCustomView.setVisibility(View.VISIBLE);
|
|
|
mCustomViewCallback = callback;
|
|
|
- mLayout.addView(mCustomView);
|
|
|
+ int appScreenHeight = ScreenUtils.getAppScreenHeight();
|
|
|
+ int appScreenWidth = ScreenUtils.getAppScreenWidth();
|
|
|
+ FrameLayout.LayoutParams layoutParams =new FrameLayout.LayoutParams(appScreenHeight,appScreenWidth);
|
|
|
+ mLayout.addView(mCustomView,layoutParams);
|
|
|
mLayout.setVisibility(View.VISIBLE);
|
|
|
mLayout.bringToFront();
|
|
|
headerBbarView.setVisibility(View.GONE);
|