private final View initEngineUI() { mScreen = new FrameLayout(this); FrameLayout.LayoutParams screenPa = new FrameLayout.LayoutParams(Compat.FILL, Compat.FILL); mScreen.setLayoutParams(screenPa); mEBrwMainFrame = new EBrowserMainFrame(this); FrameLayout.LayoutParams mainPagePa = new FrameLayout.LayoutParams(Compat.FILL, Compat.FILL); EUtil.viewBaseSetting(mEBrwMainFrame); mEBrwMainFrame.setLayoutParams(mainPagePa); mScreen.addView(mEBrwMainFrame); FrameLayout splash = new FrameLayout(this); splash.setClickable(true); FrameLayout.LayoutParams shelterPa = new FrameLayout.LayoutParams(Compat.FILL, Compat.FILL); splash.setLayoutParams(shelterPa); mScreen.addView(splash); /* * ImageView background = new ImageView(this); * * FrameLayout.LayoutParams backgroundPa = new * FrameLayout.LayoutParams(Compat.FILL, Compat.FILL); * background.setLayoutParams(backgroundPa); * * * * splash.addView(background); */ /* * if(0 < screenWidth && screenWidth < 480){ * foreground.setBackgroundResource(EResources.startup_fg_small); }else * if(480 <= screenWidth && screenWidth < 720){ * foreground.setBackgroundResource(EResources.startup_fg_normal); }else * if(720 <= screenWidth && screenWidth < 1080){ if(0 != * EResources.startup_fg_large){ * foreground.setBackgroundResource(EResources.startup_fg_large); }else{ * foreground.setBackgroundResource(EResources.startup_fg_normal); } * }else { if(0 != EResources.startup_fg_xlarge){ * foreground.setBackgroundResource(EResources.startup_fg_xlarge); * }else{ * foreground.setBackgroundResource(EResources.startup_fg_normal); } } */ /* * FrameLayout.LayoutParams foregroundPa = new * FrameLayout.LayoutParams(Compat.WRAP, Compat.WRAP); * foregroundPa.gravity = Gravity.CENTER; * foreground.setLayoutParams(foregroundPa); splash.addView(foreground); */ /* * ImageView mark = new ImageView(this); * mark.setBackgroundResource(EResources.mark_bg); * FrameLayout.LayoutParams markPa = new * FrameLayout.LayoutParams(Compat.WRAP, Compat.WRAP); markPa.gravity = * Gravity.BOTTOM | Gravity.RIGHT; mark.setLayoutParams(markPa); * splash.addView(mark); if(develop){ TextView worn = new * TextView(this); worn.setText("测试版本仅用于开发测试"); * worn.setTextColor(0xffff0000); * worn.setTextSize(TypedValue.COMPLEX_UNIT_SP, 18); * FrameLayout.LayoutParams wornPa = new * FrameLayout.LayoutParams(Compat.FILL, Compat.WRAP); wornPa.gravity = * Gravity.TOP; wornPa.leftMargin = 10; wornPa.topMargin = 10; * worn.setLayoutParams(wornPa); splash.addView(worn); } */ return splash; }