@Override
  public boolean onTouchEvent(MotionEvent event) {
    super.onTouchEvent(event);

    if (event.getAction() == MotionEvent.ACTION_UP) {

      if (dialogFrameMyTake.getVisibility() == View.VISIBLE) {
        dialogFrameCommon.setVisibility(View.VISIBLE);
        dialogFrameMyTake.setVisibility(View.GONE);
        uncheckAllRadioButtons();
      } else if (dialogFrameRate.getVisibility() == View.VISIBLE) {
        dialogFrameCommon.setVisibility(View.VISIBLE);
        dialogFrameRate.setVisibility(View.GONE);
        uncheckAllRadioButtons();
      } else if (dialogFrameSendToKindle.getVisibility() == View.VISIBLE) {
        dialogFrameCommon.setVisibility(View.VISIBLE);
        dialogFrameSendToKindle.setVisibility(View.GONE);
        uncheckAllRadioButtons();
      } else if (dialogFrameLend.getVisibility() == View.VISIBLE) {
        dialogFrameCommon.setVisibility(View.VISIBLE);
        dialogFrameLend.setVisibility(View.GONE);
        uncheckAllRadioButtons();
      } else if (this.getVisibility() == View.VISIBLE) {
        dialogFrameCommon.setVisibility(View.GONE);
        this.setVisibility(View.GONE);
      }
    }

    return true;
  }
  void initDialogStack() {
    dialogFrameCommon.bindViews(bookItem);
    dialogFrameMyTake.bindViews(bookItem);
    dialogFrameRate.bindViews(bookItem);
    dialogFrameSendToKindle.bindViews(bookItem);
    dialogFrameLend.initDialog(bookItem);

    dialogFrameCommon.setVisibility(View.VISIBLE);
    uncheckAllRadioButtons();
  }
 public void hideChildDialogs() {
   dialogFrameCommon.setVisibility(View.GONE);
   dialogFrameMyTake.setVisibility(View.GONE);
   dialogFrameRate.setVisibility(View.GONE);
   dialogFrameSendToKindle.setVisibility(View.GONE);
   dialogFrameLend.setVisibility(View.GONE);
 }
 public void enableInitialDialog() {
   hideChildDialogs();
   dialogFrameCommon.setVisibility(View.VISIBLE);
   uncheckAllRadioButtons();
 }