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">