@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;
  }
 public void hideChildDialogs() {
   dialogFrameCommon.setVisibility(View.GONE);
   dialogFrameMyTake.setVisibility(View.GONE);
   dialogFrameRate.setVisibility(View.GONE);
   dialogFrameSendToKindle.setVisibility(View.GONE);
   dialogFrameLend.setVisibility(View.GONE);
 }
  void initDialogStack() {
    dialogFrameCommon.bindViews(bookItem);
    dialogFrameMyTake.bindViews(bookItem);
    dialogFrameRate.bindViews(bookItem);
    dialogFrameSendToKindle.bindViews(bookItem);
    dialogFrameLend.initDialog(bookItem);

    dialogFrameCommon.setVisibility(View.VISIBLE);
    uncheckAllRadioButtons();
  }
 @Click(R.id.book_details_send_to_kindle_radiobutton)
 void onSendToKindleButtonClicked() {
   hideChildDialogs();
   dialogFrameSendToKindle.setVisibility(View.VISIBLE);
 }
 public boolean isChildDialogsVisible() {
   return (dialogFrameMyTake.getVisibility() == View.VISIBLE
       || dialogFrameRate.getVisibility() == View.VISIBLE
       || dialogFrameSendToKindle.getVisibility() == View.VISIBLE
       || dialogFrameLend.getVisibility() == View.VISIBLE);
 }