コード例 #1
0
 // Removes a child from this GLView.
 public boolean removeComponent(GLView component) {
   if (mComponents == null) return false;
   if (mComponents.remove(component)) {
     removeOneComponent(component);
     return true;
   }
   return false;
 }
コード例 #2
0
 // Removes all children of this GLView.
 public void removeAllComponents() {
   for (int i = 0, n = mComponents.size(); i < n; ++i) {
     removeOneComponent(mComponents.get(i));
   }
   mComponents.clear();
 }