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. 
enum ViewModePickerDialogFragment.ViewModePickerItems  
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)
Dialog onCreateDialog(Bundle savedInstanceState)
void onDismiss(DialogInterface dialog)
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

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)

public Dialog onCreateDialog (Bundle savedInstanceState)

public void onDismiss (DialogInterface 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