From c53757c64bc185e37b1fc3beb9d17a44b2316bab Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Tue, 6 Jun 2023 14:41:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4WebView?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/main/res/layout/activity_webview.xml | 1 + .../main/java/com/yunbao/main/activity/ZhuangBanActivity.java | 1 + 2 files changed, 2 insertions(+) diff --git a/common/src/main/res/layout/activity_webview.xml b/common/src/main/res/layout/activity_webview.xml index 0f10ea7e6..ec83eebe4 100644 --- a/common/src/main/res/layout/activity_webview.xml +++ b/common/src/main/res/layout/activity_webview.xml @@ -67,5 +67,6 @@ \ No newline at end of file diff --git a/main/src/main/java/com/yunbao/main/activity/ZhuangBanActivity.java b/main/src/main/java/com/yunbao/main/activity/ZhuangBanActivity.java index b746da228..938f95910 100644 --- a/main/src/main/java/com/yunbao/main/activity/ZhuangBanActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/ZhuangBanActivity.java @@ -102,6 +102,7 @@ public class ZhuangBanActivity extends AbsActivity { mWebView = new WebView(mContext); LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); params.topMargin = DpUtil.dp2px(1); + params.bottomMargin = DpUtil.dp2px(15); mWebView.setLayoutParams(params); mWebView.setOverScrollMode(View.OVER_SCROLL_NEVER); rootView.addView(mWebView);