コード例 #1
0
  public void addNativeComponent(AbstractTnComponent uiComponent, int index) {
    android.view.ViewGroup.LayoutParams layoutParams =
        ((View) uiComponent.getNativeUiComponent()).getLayoutParams();
    if (layoutParams == null) {
      layoutParams = getDefaultLayoutParams();
    }

    this.addView((View) uiComponent.getNativeUiComponent(), index, layoutParams);
  }
コード例 #2
0
 public void removeNativeComponentInLayout(AbstractTnComponent uiComponent) {
   this.removeViewInLayout((View) uiComponent.getNativeUiComponent());
 }
コード例 #3
0
 public int indexOfComponent(AbstractTnComponent uiComponent) {
   return this.indexOfChild((View) uiComponent.getNativeUiComponent());
 }