Exemplo n.º 1
0
 public void remove(TiUIView child) {
   if (child != null) {
     View cv = child.getNativeView();
     if (cv != null) {
       View nv = getNativeView();
       if (nv instanceof ViewGroup) {
         ((ViewGroup) nv).removeView(cv);
         children.remove(child);
         child.parent = null;
       }
     }
   }
 }
Exemplo n.º 2
0
 public void add(TiUIView child) {
   if (child != null) {
     View cv = child.getNativeView();
     if (cv != null) {
       View nv = getNativeView();
       if (nv instanceof ViewGroup) {
         if (cv.getParent() == null) {
           ((ViewGroup) nv).addView(cv, child.getLayoutParams());
         }
         children.add(child);
         child.parent = proxy;
       }
     }
   }
 }