public class

CustomColorModeDialogFragment

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

Class Overview

A dialog fragment shows a list of preset color modes. It allows user to set PDFViewCtrl to custom color view mode.

Summary

Nested Classes
interface CustomColorModeDialogFragment.CustomColorModeSelectedListener Listener interface for custom color mode selected event  
class CustomColorModeDialogFragment.CustomViewPager A view pager for displaying custom color mode list  
class CustomColorModeDialogFragment.PresetRecyclerAdapter A Recycler view adapter of preset custom color modes  
interface CustomColorModeDialogFragment.PresetRecyclerAdapterListener Listener interface for preset custom color mode selected event  
Public Constructors
CustomColorModeDialogFragment()
Public Methods
static CustomColorModeDialogFragment newInstance(int bgColor, int txtColor)
Creates a new instance of custom color mode 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)
void onStart()
Overload implementation of DialogFragment#onStart()
void setCustomColorModeSelectedListener(CustomColorModeDialogFragment.CustomColorModeSelectedListener listener)
Sets custom color mode selected listener
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CustomColorModeDialogFragment ()

Public Methods

public static CustomColorModeDialogFragment newInstance (int bgColor, int txtColor)

Creates a new instance of custom color mode dialog fragment

Parameters
bgColor background color
txtColor text color
Returns
  • new instance of custom color mode 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
  • a new Dialog instance to be displayed by the Fragment.

public void onDismiss (DialogInterface dialog)

public void onStart ()

Overload implementation of DialogFragment#onStart()

public void setCustomColorModeSelectedListener (CustomColorModeDialogFragment.CustomColorModeSelectedListener listener)

Sets custom color mode selected listener

Parameters
listener The selected listener