---
title: "Change overflow button color in Android toolbar"
canonical_url: "https://www.nutrient.io/guides/android/knowledge-base/styling-overflow-button/"
md_url: "https://www.nutrient.io/guides/android/knowledge-base/styling-overflow-button.md"
last_updated: "2026-05-15T19:10:04.908Z"
description: "Learn how to change the color of the overflow button in your Android toolbar to match your app's theme with easy code snippets."
---

# Customize the overflow button color in Android

When the main toolbar is full, some actions could end up in the overflow menu. By default, the overflow button is white, but the code below demonstrates how to change this default color to better fit your theme.

### Changing the color programmatically

The overflow button color can be changed programmatically inside your activity:

```kotlin

val mainToolbar = findViewById(R.id.pspdf__toolbar_main) as MainToolbar
mainToolbar.overflowIcon?.colorFilter = PorterDuffColorFilter(color, PorterDuff.Mode.SRC_ATOP)

```

### Changing the color in the theme

You can also change the overflow button color in your activity theme:

```xml

<!-- Set a custom style for the overflow button in your theme. -->

<item name="android:actionOverflowButtonStyle">@style/OverflowButtonStyle</item>....

<!-- Extend the overflow button style with a different tint color. -->

<style name="OverflowButtonStyle" parent="Widget.AppCompat.ActionButton.Overflow">
    <item name="tint">@color/custom_overflow_button_color</item>
</style>

```

If you aren’t yet using a custom theme, refer to our guide on [defining a custom theme](https://www.nutrient.io/guides/android/customizing-the-interface/appearance-styling.md#defining-a-custom-theme) for more information.
---

## Related pages

- [Allow Clear Text Traffic](/guides/android/knowledge-base/allow-clear-text-traffic.md)
- [Compose Qna](/guides/android/knowledge-base/compose-qna.md)
- [Disabling Annotation Rotation](/guides/android/knowledge-base/disabling-annotation-rotation.md)
- [Custom Print Functionality](/guides/android/knowledge-base/custom-print-functionality.md)
- [Deleting Pages From A Pdf](/guides/android/knowledge-base/deleting-pages-from-a-pdf.md)
- [Easily disable share and print options in Android](/guides/android/knowledge-base/disable-share-documentinfo-print.md)
- [Managing touch scrolling in Compose containers](/guides/android/knowledge-base/document-view-inside-pager-scroll-handling.md)
- [Getting All Digital Signatures](/guides/android/knowledge-base/getting-all-digital-signatures.md)
- [Change page layout dynamically based on orientation](/guides/android/knowledge-base/dynamic-page-layout-when-changing-orientation.md)
- [Getting Signature Location](/guides/android/knowledge-base/getting-signature-location.md)
- [Invoke Search Programmatically](/guides/android/knowledge-base/invoke-search-programmatically.md)
- [Install Failed Insufficient Storage](/guides/android/knowledge-base/install-failed-insufficient-storage.md)
- [Intercepting Touch Events](/guides/android/knowledge-base/intercepting-touch-events.md)
- [Creating invisible digital signatures in Android](/guides/android/knowledge-base/invisible-signature.md)
- [Invoking Share Action Programmatically](/guides/android/knowledge-base/invoking-share-action-programmatically.md)
- [Making Form Elements Read Only](/guides/android/knowledge-base/making-form-elements-read-only.md)
- [Override Hyperlink Behavior](/guides/android/knowledge-base/override-hyperlink-behavior.md)
- [Runtime Permissions Cordova](/guides/android/knowledge-base/runtime-permissions-cordova.md)
- [Remove Tool Variant From Toolbar](/guides/android/knowledge-base/remove-tool-variant-from-toolbar.md)
- [Save signed PDFs directly to a remote server on Android](/guides/android/knowledge-base/save-signed-pdfs-to-remote-server.md)
- [Using Pspdfkit With Dynamic Feature Modules](/guides/android/knowledge-base/using-pspdfkit-with-dynamic-feature-modules.md)

