protected void reattachToGuides(InstallOptionsWidget widget) { if (mVerticalGuide != null) { mVerticalGuide.attachWidget(widget, mVerticalAlign); } if (mHorizontalGuide != null) { mHorizontalGuide.attachWidget(widget, mHorizontalAlign); } }
protected void detachFromGuides(InstallOptionsWidget widget) { if (widget.getVerticalGuide() != null) { mVerticalGuide = widget.getVerticalGuide(); mVerticalAlign = mVerticalGuide.getAlignment(widget); mVerticalGuide.detachWidget(widget); } if (widget.getHorizontalGuide() != null) { mHorizontalGuide = widget.getHorizontalGuide(); mHorizontalAlign = mHorizontalGuide.getAlignment(widget); mHorizontalGuide.detachWidget(widget); } }