コード例 #1
0
 private void showHandleIfNeeded() {
   if (!mIsShowing) {
     mIsShowing = true;
     mHandle.show();
     setHandleVisibility(HandleView.VISIBLE);
   }
 }
コード例 #2
0
 @Override
 public void hide() {
   if (mIsShowing) {
     if (mHandle != null) mHandle.hide();
     mIsShowing = false;
   }
 }
コード例 #3
0
 int getHandleY() {
   return mHandle.getAdjustedPositionY();
 }
コード例 #4
0
 /** Sets the handle to the given visibility. */
 public void setHandleVisibility(int visibility) {
   mHandle.setVisibility(visibility);
 }
コード例 #5
0
 /** If the handle is not visible, sets its visibility to View.VISIBLE and begins fading it in. */
 public void beginHandleFadeIn() {
   mHandle.beginFadeIn();
 }
コード例 #6
0
 /**
  * Moves the handle so that it points at the given coordinates.
  *
  * @param x Handle x in physical pixels.
  * @param y Handle y in physical pixels.
  */
 public void setHandlePosition(float x, float y) {
   mHandle.positionAt((int) x, (int) y);
 }
コード例 #7
0
 void showPastePopup() {
   if (mIsShowing) {
     mHandle.showPastePopupWindow();
   }
 }