public class

PaneBehavior

extends
java.lang.Object
   ↳
     ↳ com.pdftron.pdf.utils.PaneBehavior

Class Overview

A Coordinator layout behavior that adjusts child view size based on screen size and device configuration.

Summary

Public Constructors
PaneBehavior()
Public Methods
static PaneBehavior from(View view)
A utility function to get the PaneBehavior associated with the view.
static int getGravityForOrientation(Context context, int orientation)
Gets gravity for orientation
boolean onMeasureChild(CoordinatorLayout parent, View child, int parentWidthMeasureSpec, int widthUsed, int parentHeightMeasureSpec, int heightUsed)
void onOrientationChanged(View child, int orientation)
The method is invoked when there is orientation changed
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PaneBehavior ()

Public Methods

public static PaneBehavior from (View view)

A utility function to get the PaneBehavior associated with the view.

Parameters
view The View with PaneBehavior.
Returns

public static int getGravityForOrientation (Context context, int orientation)

Gets gravity for orientation

Parameters
context The context
orientation The orientation
Returns
  • gravity

public boolean onMeasureChild (CoordinatorLayout parent, View child, int parentWidthMeasureSpec, int widthUsed, int parentHeightMeasureSpec, int heightUsed)

public void onOrientationChanged (View child, int orientation)

The method is invoked when there is orientation changed

Parameters
child child view
orientation orientation