Esempio n. 1
0
 protected void reattachToGuides(InstallOptionsWidget widget) {
   if (mVerticalGuide != null) {
     mVerticalGuide.attachWidget(widget, mVerticalAlign);
   }
   if (mHorizontalGuide != null) {
     mHorizontalGuide.attachWidget(widget, mHorizontalAlign);
   }
 }
Esempio n. 2
0
 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);
   }
 }