From 86902a8f9b0dd2799e7609f19b3403abc9b9e4c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E7=9A=AE?= <14840170+lao-pi123@user.noreply.gitee.com> Date: Sat, 14 Sep 2024 09:42:31 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E8=8E=B7=E5=8F=96=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=A0=8F=E9=AB=98=E5=BA=A6=E4=BC=A0=E7=BB=99H5=EF=BC=88?= =?UTF-8?q?=E5=B9=BF=E5=9C=BA=E6=A8=A1=E5=9D=97=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yunbao/main/fragment/MainHomeCommunityFragment.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main/src/main/java/com/yunbao/main/fragment/MainHomeCommunityFragment.java b/main/src/main/java/com/yunbao/main/fragment/MainHomeCommunityFragment.java index 762980571..92a5ee54a 100644 --- a/main/src/main/java/com/yunbao/main/fragment/MainHomeCommunityFragment.java +++ b/main/src/main/java/com/yunbao/main/fragment/MainHomeCommunityFragment.java @@ -186,8 +186,10 @@ public class MainHomeCommunityFragment extends BaseFragment { view.loadUrl(jsUrl); view.reload(); } - - view.postDelayed(new Runnable(){ + int starHeight = UIUtils.getStatusBarHeight(mContext); + Log.e("网页高度 3 ", starHeight + ""); + view.loadUrl("javascript:setTop(" + starHeight + ")"); + /* view.postDelayed(new Runnable(){ @Override public void run() { int height = view.getMeasuredHeight(); @@ -196,7 +198,7 @@ public class MainHomeCommunityFragment extends BaseFragment { Log.e("网页高度", height + ""); view.loadUrl("javascript:setTop(" + 200 + ")"); } - },3000); + },3000);*/ } });