---
title: "Customizing note annotation icon on Android | Nutrient SDK"
canonical_url: "https://www.nutrient.io/guides/android/annotations/customize-annotation-rendering/"
md_url: "https://www.nutrient.io/guides/android/annotations/customize-annotation-rendering.md"
last_updated: "2026-06-19T09:21:00.177Z"
description: "There are various ways to customize how an annotation is shown and rendered on a page. for Nutrient Android SDK."
---

# Customizing the note icon on Android

There are various ways to customize how an annotation is shown and rendered on a page.

## Note hints

A small note icon indicator is displayed next to the actual annotation when it has text attached to it. It can be attached to the annotation either by programmatically setting it via [`setContents()`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.annotations/-annotation/set-contents.html) on the annotation, or by adding it in the UI via the Note action in the editing menu.

### Disabling note hinting

[`PdfActivity`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.ui/-pdf-activity/index.html) enables note hinting by default. You can disable it by using [`configuration.setAnnotationNoteHintingEnabled(false)`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.configuration.activity/-pdf-activity-configuration/-builder/set-annotation-note-hinting-enabled.html) when configuring your activity, like so:

### KOTLIN

```kotlin

// Disable note hinting.
val config = PdfActivityConfiguration.Builder(context).setAnnotationNoteHintingEnabled(false).build()

PdfActivity.showDocument(context, documentUri, config)

```

### JAVA

```java

// Disable note hinting.
final PdfActivityConfiguration config =
    new PdfActivityConfiguration.Builder(context).setAnnotationNoteHintingEnabled(false).build();

PdfActivity.showDocument(context, documentUri, config);

```

### Adding note hints to your PdfFragment

[`PdfFragment`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.ui/-pdf-fragment/index.html) won’t perform note hinting on its own, but it can use [`AnnotationNoteHinter`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.ui.note/-annotation-note-hinter/index.html) to show the note icons. [`AnnotationNoteHinter`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.ui.note/-annotation-note-hinter/index.html) is a drawable provider and can be added to your fragment using [`fragment.addDrawableProvider(noteHinter)`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.ui/-pdf-fragment/add-drawable-provider.html), like so:

### KOTLIN

```kotlin

val noteHinter = AnnotationNoteHinter(context)
fragment.addDrawableProvider(noteHinter)

```

### JAVA

```java

final AnnotationNoteHinter noteHinter = new AnnotationNoteHinter(context);
fragment.addDrawableProvider(noteHinter);

```

To learn how to implement a custom annotation note hinter, have a look at the `CustomAnnotationNoteHinterProviderExample` in the Catalog app..

#### Theming the AnnotationNoteHinter

The appearance of the `AnnotationNoteHinter` can be adjusted by providing a custom theme for it. The following attributes can be modified for `pspdf__AnnotationNoteHinter`:

| Attribute                                | Description                                                                       |
| ---------------------------------------- | --------------------------------------------------------------------------------- |
| `pspdf__useNoteHinterIntrinsicSize`      | Whether to use the intrinsic size of the icon or the size specified in the theme. |
| `pspdf__noteHinterWidth`                 | The width of the note icon.                                                       |
| `pspdf__noteHinterHeight`                | The height of the note icon.                                                      |
| `pspdf__noteHinterTextMarkupLeftPadding` | Padding to apply for note icons on text markup annotations.                       |
| `pspdf__noteHinterColor`                 | The color of the note icon.                                                       |
| `pspdf__noteHinterAlpha`                 | The alpha value of the note icon.                                                 |
| `pspdf__noteHinterIcon`                  | The icon that is used to indicate the annotation has a note.                      |

An example would look like this:

```html

<style name="PSPDFCatalog.Theme.Dark" parent="PSPDFKit.Theme.Dark">...
    <item name="pspdf__annotationNoteHinterStyle">@style/PSPDFCatalog.Theme.Dark.AnnotationNoteHinterStyle</item>
</style>...

<style name="PSPDFCatalog.AnnotationNoteHinter.Dark" parent="PSPDFKit.AnnotationNoteHinter">
    <item name="pspdf__noteHinterColor">@color/pspdf__color_gray</item>
    <item name="pspdf__useNoteHinterIntrinsicSize">false</item>
    <item name="pspdf__noteHinterWidth">24dp</item>
    <item name="pspdf__noteHinterHeight">24dp</item>
    <item name="pspdf__noteHinterTextMarkupLeftPadding">8dp</item>
    <item name="pspdf__noteHinterAlpha">255</item>
    <item name="pspdf__noteHinterIcon">@drawable/pspdf__ic_caret</item>
</style>

```
---

## Related pages

- [Enhance PDF annotation with custom appearance streams](/guides/android/annotations/appearance-streams.md)
- [Configure PDF annotations in Android](/guides/android/annotations/annotation-configuration.md)
- [JavaScript support in annotations on Android](/guides/android/miscellaneous/javascript-api.md)
- [Hiding annotations on Android](/guides/android/annotations/configuring-editablevisible-annotation-types.md)
- [Store custom data in annotations on Android](/guides/android/annotations/custom-data-in-annotations.md)

