Lines Matching refs:parent

610      * Insert a new child into an existing parent.
671 * Adds a given view to a given parent at a given index.
673 * @param parent the parent to receive the view
674 * @param view the view to add to the parent
678 * {@link Status#ERROR_VIEWGROUP_NO_CHILDREN} if the given parent doesn't support
681 private Result addView(ViewGroup parent, View view, int index) {
683 parent.addView(view, index);
692 * Moves a view to a new parent at a given location
709 // need to create a new LayoutParams object for the new parent.
714 // get the current parent of the view that needs to be moved.
721 // parent views are different we fake the animation through a no animation thread.
756 // set up the transition for the parent.
805 * Moves a View from its current parent to a new given parent at a new given location, with
808 * @param previousParent the previous parent, still owning the child at the time of the call.
809 * @param newParent the new parent
811 * @param index the new location in the new parent
815 * {@link Status#ERROR_VIEWGROUP_NO_CHILDREN} if the given parent doesn't support
825 // parent reference to be null'ed out so that we can add it to the new parent.
829 // Because there is no move animation, if the new parent is the same as the old
830 // parent, we need to wait until the CHANGE_DISAPPEARING animation is done before
863 // remove the view from the current parent.
866 // and return since adding the view to the new parent is done in the listener.
888 * Removes a child from its current parent.
902 final ViewGroup parent = (ViewGroup) childView.getParent();
909 parent.setLayoutTransition(new LayoutTransition());
910 return removeView(parent, childView);
915 parent.setLayoutTransition(null);
923 Result result = removeView(parent, childView);
932 * Removes a given view from its current parent.
934 * @param view the view to remove from its parent
937 * {@link Status#ERROR_VIEWGROUP_NO_CHILDREN} if the given parent doesn't support
940 private Result removeView(ViewGroup parent, View view) {
942 parent.removeView(view);