|
...
|
...
|
@@ -57,7 +57,7 @@ public class AggH5MainActivity extends Activity { |
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
mContext = this;
|
|
|
|
|
|
|
|
setContentView(MResource.getIdByName(mContext, "layout", "activity_main"));
|
|
|
|
setContentView(MResource.getIdByName(mContext, "layout", "activity_agg_main"));
|
|
|
|
initView();
|
|
|
|
initSDK();
|
|
|
|
|
|
...
|
...
|
@@ -72,7 +72,7 @@ public class AggH5MainActivity extends Activity { |
|
|
|
|
|
|
|
private void initView() {
|
|
|
|
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
|
|
|
|
webView = findViewById(MResource.getIdByName(mContext, "id", "webview"));
|
|
|
|
webView = findViewById(MResource.getIdByName(mContext, "id", "game_webview"));
|
|
|
|
webView.addJavascriptInterface(new AggH5AndroidToJs(), "AggH5Game");
|
|
|
|
|
|
|
|
//页面缩放,适应手机屏幕
|
...
|
...
|
|