code: private void hookListeners() {
      draggableView.setDraggableListener(new DraggableListener() {
        @Override public void onMaximized() {
          updateActionBarTitle();
        }
  
        @Override public void onMinimized() {
          updateActionBarTitle();
        }
  
        @Override public void onClosedToLeft() {
          resetActionBarTitle();
        }
  
        @Override public void onClosedToRight() {
          resetActionBarTitle();
        }
      });
    }
docs: Hook DraggableListener to draggableView to modify action bar title with the tv show
  information.