Some test text!

platform
search

Document outline

Contents

Show outline dialog
Listener

The OutlineDialogFragment displays a document outline (containing PDF Bookmarks) that can be used to navigate the PDF document by selecting a bookmark item.

linkShow outline dialog

To show an outline dialog fragment in your activity, create a new instance of OutlineDialogFragment by calling newInstance() and setting the PDFViewCtrl:

private PDFViewCtrl mPdfViewCtrl;
// ...
public void showOutlineDialog(FragmentManager fragmentManager) {
    OutlineDialogFragment outlineDialogFragment = OutlineDialogFragment.newInstance()
        .setPdfViewCtrl(mPdfViewCtrl);
    // Set a custom style for this fragment
    outlineDialogFragment.setStyle(DialogFragment.STYLE_NO_TITLE, R.style.CustomAppTheme);
    // Show the dialog
    outlineDialogFragment.show(fragmentManager, "outline_dialog");
}
var outlineDialog = OutlineDialogFragment.NewInstance();
outlineDialog.SetPdfViewCtrl(mPdfViewCtrl);
// Set a custom style for this fragment
outlineDialog.SetStyle((int)DialogFragmentStyle.NoTitle, Resource.Style.CustomAppTheme);
// Show the dialog
outlineDialog.Show(this.SupportFragmentManager, "outline_list_dialog");
outlineDialog.OutlineClicked += (sender, e) =>
{
    outlineDialog.Dismiss();
};

You can also set the current bookmark using setCurrentBookmark(Bookmark).

linkListener

You can set a listener to be notified when an item in an OutlineDialogFragment is clicked by calling setOutlineDialogListener(OutlineDialogListener).

Get the anwsers you need: Support

Contents

Show outline dialog
Listener