1、获取状态栏高度传给H5(广场模块) 撤销,改回之前的40dp
This commit is contained in:
parent
86902a8f9b
commit
602417f45d
@ -186,19 +186,9 @@ public class MainHomeCommunityFragment extends BaseFragment {
|
|||||||
view.loadUrl(jsUrl);
|
view.loadUrl(jsUrl);
|
||||||
view.reload();
|
view.reload();
|
||||||
}
|
}
|
||||||
int starHeight = UIUtils.getStatusBarHeight(mContext);
|
/* int starHeight = UIUtils.getStatusBarHeight(mContext);
|
||||||
Log.e("网页高度 3 ", starHeight + "");
|
Log.e("网页高度 3 ", starHeight + "");
|
||||||
view.loadUrl("javascript:setTop(" + 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);*/
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
android:layout_marginTop="40dp"
|
||||||
android:id="@+id/rootView"
|
android:id="@+id/rootView"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
Loading…
Reference in New Issue
Block a user