コード例 #1
0
  private final void initEngine(Message resultMsg) {
    if (resultMsg.arg1 == 0) {
      loadResError();
      return;
    }

    ACEDes.getObfuscationList();

    WWidgetData rootWidget = (WWidgetData) resultMsg.obj;
    // String[] plugins = {"uexXmlHttpMgr", "uexCamera"};
    // rootWidget.disablePlugins = plugins;
    changeConfiguration(rootWidget.m_orientation);
    EBrowserWidgetPool eBrwWidPo = new EBrowserWidgetPool(mBrowser, mEBrwMainFrame, mBrowserAround);
    mBrowser.init(eBrwWidPo);
    // rootWidget.m_indexUrl = "http://xhsnbjlxt.cloud7.com.cn";
    // rootWidget.m_indexUrl = "http://192.168.1.38:8080/ldx/index.html";
    eBrwWidPo.init(rootWidget);
    mBrowserAround.init(eBrwWidPo);
    mEBrwMainFrame.init(mBrowser);
    mBrowserAround.setSpaceFlag(rootWidget.getSpaceStatus());
    mEHandler.sendMessageDelayed(mEHandler.obtainMessage(EHandler.F_MSG_LOAD_DELAY), 100);
    WidgetOneApplication app = (WidgetOneApplication) getApplication();
    app.widgetRegist(rootWidget, this);
  }
コード例 #2
0
  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;
  }
コード例 #3
0
  public final void showCustomView(View view, CustomViewCallback callback) {

    mEBrwMainFrame.showCustomView(view, callback);
  }
コード例 #4
0
  public final boolean customViewShown() {

    return mEBrwMainFrame.customViewShown();
  }
コード例 #5
0
  public final void hideCustomView() {

    mEBrwMainFrame.hideCustomView();
  }