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

public Dialog onCreateDialog (Bundle savedInstanceState)

public void onDismiss (DialogInterface dialog)

public void onStart ()

public void setCustomColorModeSelectedListener (CustomColorModeDialogFragment.CustomColorModeSelectedListener listener)

Sets custom color mode selected listener

Parameters
listener The selected listener