1、获取状态栏高度传给H5(广场模块)
This commit is contained in:
parent
7cb89035d8
commit
86902a8f9b
@ -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);*/
|
||||
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user