Some test text!

platform
search

Annotation list

Contents

Show annotation dialog
Listener
Read-only

The AnnotationDialogFragment displays a list of all annotations in a document being viewed by a PDFViewCtrl. The list also contains any comments that have been added to the annotations.

linkShow annotation dialog

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

private PDFViewCtrl mPdfViewCtrl;
// ...
public void showAnnotationDialog(FragmentManager fragmentManager) {
    AnnotationDialogFragment annotationDialogFragment = AnnotationDialogFragment.newInstance();
    annotationDialogFragment.setPdfViewCtrl(mPdfViewCtrl);
    // Set a custom style for this fragment
    annotationDialogFragment.setStyle(DialogFragment.STYLE_NO_TITLE, R.style.CustomAppTheme);
    // Show the dialog
    annotationDialogFragment.show(fragmentManager, "annotation_dialog");
}

linkListener

By calling setAnnotationDialogListener(AnnotationDialogListener), you can set a listener to be notified when an annotation item is clicked, or when document annotations are exported to a PDF doc when users click on the export floating action button.

linkRead-only

If the document has write access, users can delete existing annotations by long-pressing on the annotation. To specify whether the document is read-only call setReadOnly(boolean).

Get the anwsers you need: Support

Contents

Show annotation dialog
Listener
Read-only