Some test text!

platform
search

Document outline

Contents

Show outline dialog
Listener
This tutorial only applies to Xamarin.Android.

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:

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