当前位置: 首页>>代码示例>>Java>>正文


Java WXRenderStrategy.APPEND_ONCE属性代码示例

本文整理汇总了Java中com.taobao.weex.common.WXRenderStrategy.APPEND_ONCE属性的典型用法代码示例。如果您正苦于以下问题:Java WXRenderStrategy.APPEND_ONCE属性的具体用法?Java WXRenderStrategy.APPEND_ONCE怎么用?Java WXRenderStrategy.APPEND_ONCE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.taobao.weex.common.WXRenderStrategy的用法示例。


在下文中一共展示了WXRenderStrategy.APPEND_ONCE属性的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createBody

/**
 * create RootView ,every weex Instance View has a rootView;
 * @see com.taobao.weex.dom.WXDomStatement#createBody(JSONObject)
 */
void createBody(WXComponent component) {
  long start = System.currentTimeMillis();
  component.createView(mGodComponent, -1);
  if (WXEnvironment.isApkDebugable()) {
    WXLogUtils.renderPerformanceLog("createView", (System.currentTimeMillis() - start));
  }
  start = System.currentTimeMillis();
  component.applyLayoutAndEvent(component);
  component.bindData(component);

  if (WXEnvironment.isApkDebugable()) {
    WXLogUtils.renderPerformanceLog("bind", (System.currentTimeMillis() - start));
  }

  if (component instanceof WXScroller) {
    WXScroller scroller = (WXScroller) component;
    if (scroller.getInnerView() instanceof ScrollView) {
      mWXSDKInstance.setRootScrollView((ScrollView) scroller.getInnerView());
    }
  }
  mWXSDKInstance.setRootView(mGodComponent.getRealView());
  if (mWXSDKInstance.getRenderStrategy() != WXRenderStrategy.APPEND_ONCE) {
    mWXSDKInstance.onViewCreated(mGodComponent);
  }
}
 
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:29,代码来源:WXRenderStatement.java

示例2: createBody

/**
 * create RootView ,every weex Instance View has a rootView;
 * @see com.taobao.weex.dom.WXDomStatement#createBody(JSONObject)
 */
void createBody(WXComponent component) {
  long start = System.currentTimeMillis();
  component.createView();
  if (WXEnvironment.isApkDebugable()) {
    WXLogUtils.renderPerformanceLog("createView", (System.currentTimeMillis() - start));
  }
  start = System.currentTimeMillis();
  component.applyLayoutAndEvent(component);
  component.bindData(component);

  if (WXEnvironment.isApkDebugable()) {
    WXLogUtils.renderPerformanceLog("bind", (System.currentTimeMillis() - start));
  }

  if (component instanceof WXScroller) {
    WXScroller scroller = (WXScroller) component;
    if (scroller.getInnerView() instanceof ScrollView) {
      mWXSDKInstance.setRootScrollView((ScrollView) scroller.getInnerView());
    }
  }
  mWXSDKInstance.onRootCreated(component);
  if (mWXSDKInstance.getRenderStrategy() != WXRenderStrategy.APPEND_ONCE) {
    mWXSDKInstance.onCreateFinish();
  }
}
 
开发者ID:erguotou520,项目名称:weex-uikit,代码行数:29,代码来源:WXRenderStatement.java

示例3: createBody

/**
 * create RootView ,every weex Instance View has a rootView;
 * @see com.taobao.weex.dom.WXDomStatement#createBody(JSONObject)
 */
void createBody(WXComponent component) {
  long start = System.currentTimeMillis();
  component.createView(mGodComponent, -1);
  if (WXEnvironment.isApkDebugable()) {
    WXLogUtils.renderPerformanceLog("createView", (System.currentTimeMillis() - start));
  }
  start = System.currentTimeMillis();
  component.applyLayoutAndEvent(component);
  component.bindData(component);

  if (WXEnvironment.isApkDebugable()) {
    WXLogUtils.renderPerformanceLog("bind", (System.currentTimeMillis() - start));
  }

  if (component instanceof WXScroller) {
    WXScroller scroller = (WXScroller) component;
    if (scroller.getView() instanceof ScrollView) {
      mWXSDKInstance.setRootScrollView((ScrollView) scroller.getView());
    }
  }
  mWXSDKInstance.setRootView(mGodComponent.getRealView());
  if (mWXSDKInstance.getRenderStrategy() != WXRenderStrategy.APPEND_ONCE) {
    mWXSDKInstance.onViewCreated(mGodComponent);
  }
}
 
开发者ID:Laisly,项目名称:weex,代码行数:29,代码来源:WXRenderStatement.java

示例4: createFinish

/**
 * weex render finish
 * @see  com.taobao.weex.dom.WXDomStatement#createFinish()
 */
void createFinish(int width, int height) {
  if (mWXSDKInstance.getRenderStrategy() == WXRenderStrategy.APPEND_ONCE) {
    mWXSDKInstance.onViewCreated(mGodComponent);
  }
  mWXSDKInstance.onRenderSuccess(width, height);
}
 
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:10,代码来源:WXRenderStatement.java

示例5: executeRender

@Override
public void executeRender(RenderActionContext context) {
  WXSDKInstance instance = context.getInstance();
  if (instance.getRenderStrategy() == WXRenderStrategy.APPEND_ONCE) {
    instance.onCreateFinish();
  }
  instance.onRenderSuccess(mLayoutWidth, mLayoutHeight);
}
 
开发者ID:weexext,项目名称:ucar-weex-core,代码行数:8,代码来源:CreateFinishAction.java

示例6: createFinish

/**
 * weex render finish
 * @see  com.taobao.weex.dom.WXDomStatement#createFinish()
 */
void createFinish(int width, int height) {
  if (mWXSDKInstance.getRenderStrategy() == WXRenderStrategy.APPEND_ONCE) {
    mWXSDKInstance.onCreateFinish();
  }
  mWXSDKInstance.onRenderSuccess(width, height);
}
 
开发者ID:erguotou520,项目名称:weex-uikit,代码行数:10,代码来源:WXRenderStatement.java


注:本文中的com.taobao.weex.common.WXRenderStrategy.APPEND_ONCE属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。