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 ( ) ; } } ) ; }
Hook DraggableListener to draggableView to modify action bar title with the tv show information .