Skip to content
Ivan edited this page Jul 13, 2020 · 2 revisions

Welcome to the palumu wiki!

Document

FloatingViewHelper

Properties

  • recylcerView
  • floatingView
  • listener: set a FloatingViewListener to get callbacks from helper, the most important part of this listener is getTargetView()
  • isFullScreen: to check if it's fullscreen mode.
  • topBorder: (Optional) this prop provide you to have top border of screen of the floating view. So the floating view will not pass this border.
  • bottomBorder: (Optional) this prop provide you to have bottom border of screen of floating view. So the floating view will not pass this border. You can specify a integer depends on the screen height.

Functions

  • start(): start following the target view you specified by getTargetView()
  • stop(): stop following and release the resources.
  • attachFloatingView(): attach the floating view to the recycler view, but you need to be sure that the UI is completely created. Otherwise, your target view will always be null!
  • detachFloatingView(): detach floating view and remove it from the root.
  • moveFloatingView(): move floating view from a view to another view location manually.
  • enterFullScreen()
  • leaveFullScreen()
  • addScrollChangeListenerToCurrentTarget(): add scroll listener to the target.
  • removeScrollChangeListenerToCurrentTarget(): remove scroll listener from the target.

FloatingViewListener

Functions

  • onViewDragged(isVisible: Boolean): callback function for listening floating view moved.
  • getTargetView(): a function to return a target view for FloatingViewHelper. The usage could be found in sample APP.
  • isViewOverCovered(target: View?): decide if a view is over-covered. You may decide the logic.

ScalablePageFrame

Properties

  • headView: upper part of the UI
  • bodyView: lower part of the UI
  • isClosed: to check if the frame is closed. (totally invisible in this case)
  • bottomPadding: (Optional) set the bottom padding to show your navigation bar or tool bar on your APP.
  • headRightMargin: the right margin of the head view when the frame is minimized.
  • headBottomMargin: the bottom margin of the head view when the frame is minimized.
  • listener: the listener to listen to the onMinimized, onMaximized, and onClose event.

Functions

  • init(head: View, body: View, root: ViewGroup): init the frame
  • enterFullScreen(): enter fullscreen mode
  • leaveFullScreen(): leave fullscreen mode
  • maximized()
  • minimized()
  • close(): close frame and release the resources.
  • isMinimized(): to check the frame is minimized.

DraggablePageFrame

Properties

  • contentTopMargin
  • contentLeftMargin
  • contentBottomMargin
  • contentRightMargin

Functions

  • setContentView: specify the content of the frame.
  • maximized()
  • minimized()
  • setContentMargin: set the content margins of 4 directions.
  • isMinimized(): to check the frame is minimized.