public class

ViewModePickerDialogFragment

extends DialogFragment
java.lang.Object
   ↳ DialogFragment
     ↳ com.pdftron.pdf.dialog.ViewModePickerDialogFragment

Class Overview

The ViewModePickerDialogFragment shows various view mode options, including different page presentation modes, color modes, reflow mode etc.

Summary

Nested Classes
interface ViewModePickerDialogFragment.ViewModePickerDialogFragmentListener Listener interface for view mode dialog events. 
Constants
int ITEM_ID_USERCROP Crop page control item
Public Constructors
ViewModePickerDialogFragment()
Public Methods
static ViewModePickerDialogFragment newInstance(PDFViewCtrl.PagePresentationMode currentViewMode, boolean isRTLMode, boolean isReflowMode, int reflowTextSize)
Creates a new instance of view mode picker dialog fragment
static ViewModePickerDialogFragment newInstance(PDFViewCtrl.PagePresentationMode currentViewMode, boolean isRTLMode, boolean isReflowMode, int reflowTextSize, ArrayList<Integer> hiddenItems)
Creates a new instance of view mode picker dialog fragment
void onCreate(Bundle savedInstanceState)
Overload implementation of DialogFragment#onCreate(Bundle)
Dialog onCreateDialog(Bundle savedInstanceState)
Overload implementation of DialogFragment#onCreateDialog(Bundle)
void onDismiss(DialogInterface dialog)
Overload implementation of DialogFragment#onDismiss(DialogInterface)
void onStart()
void onStop()
void setListViewHeightBasedOnChildren(ListView listView, LinearLayout layout)
Sets list view height based on children layout
void setViewModePickerDialogFragmentListener(ViewModePickerDialogFragment.ViewModePickerDialogFragmentListener listener)
Sets view mode picker dialog fragment listener
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int ITEM_ID_USERCROP

Crop page control item

Constant Value: 105 (0x00000069)

Public Constructors

public ViewModePickerDialogFragment ()

Public Methods

public static ViewModePickerDialogFragment newInstance (PDFViewCtrl.PagePresentationMode currentViewMode, boolean isRTLMode, boolean isReflowMode, int reflowTextSize)

Creates a new instance of view mode picker dialog fragment

Parameters
currentViewMode current view mode
isRTLMode is right to left mode
isReflowMode is reflow mode
reflowTextSize reflow mode text size
Returns
  • view mode picker dialog fragment

public static ViewModePickerDialogFragment newInstance (PDFViewCtrl.PagePresentationMode currentViewMode, boolean isRTLMode, boolean isReflowMode, int reflowTextSize, ArrayList<Integer> hiddenItems)

Creates a new instance of view mode picker dialog fragment

Parameters
currentViewMode current view mode
isRTLMode is right to left mode
isReflowMode is reflow mode
reflowTextSize reflow mode text size
hiddenItems view mode items to hide
Returns
  • view mode picker dialog fragment

public void onCreate (Bundle savedInstanceState)

Overload implementation of DialogFragment#onCreate(Bundle)

Parameters
savedInstanceState If the fragment is being re-created from a previous saved state, this is the state

public Dialog onCreateDialog (Bundle savedInstanceState)

Overload implementation of DialogFragment#onCreateDialog(Bundle)

Parameters
savedInstanceState The last saved instance state of the Fragment, or null if this is a freshly created Fragment.
Returns
  • View mode dialog

public void onDismiss (DialogInterface dialog)

Overload implementation of DialogFragment#onDismiss(DialogInterface)

Parameters
dialog dismissed dialog

public void onStart ()

public void onStop ()

public void setListViewHeightBasedOnChildren (ListView listView, LinearLayout layout)

Sets list view height based on children layout

Parameters
listView list view
layout children layout

public void setViewModePickerDialogFragmentListener (ViewModePickerDialogFragment.ViewModePickerDialogFragmentListener listener)

Sets view mode picker dialog fragment listener

Parameters
listener The listener