From 602417f45d51981f47ca6aa4cc7026c88283c565 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 10:20:15 +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=20=E6=92=A4?= =?UTF-8?q?=E9=94=80=EF=BC=8C=E6=94=B9=E5=9B=9E=E4=B9=8B=E5=89=8D=E7=9A=84?= =?UTF-8?q?40dp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/fragment/MainHomeCommunityFragment.java | 14 ++------------ main/src/main/res/layout/view_main_encourage.xml | 1 + 2 files changed, 3 insertions(+), 12 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 92a5ee54a..c29f8f1c0 100644 --- a/main/src/main/java/com/yunbao/main/fragment/MainHomeCommunityFragment.java +++ b/main/src/main/java/com/yunbao/main/fragment/MainHomeCommunityFragment.java @@ -186,19 +186,9 @@ public class MainHomeCommunityFragment extends BaseFragment { view.loadUrl(jsUrl); view.reload(); } - int starHeight = UIUtils.getStatusBarHeight(mContext); + /* 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(); - - int starHeight = UIUtils.getStatusBarHeight(mContext); - Log.e("网页高度", height + ""); - view.loadUrl("javascript:setTop(" + 200 + ")"); - } - },3000);*/ + view.loadUrl("javascript:setTop(" + starHeight + ")");*/ } }); diff --git a/main/src/main/res/layout/view_main_encourage.xml b/main/src/main/res/layout/view_main_encourage.xml index 7a7ab6015..d09c5d0bb 100644 --- a/main/src/main/res/layout/view_main_encourage.xml +++ b/main/src/main/res/layout/view_main_encourage.xml @@ -4,6 +4,7 @@ android:layout_height="match_parent">