Skip to content

Popup Menu Libraries

Learn how to implement a popup menu on views using these PopupMenu libraries.


View that shows quick actions when long pressed, inspired by Pinterest.

QuickActionView is a View that shows quick actions when long pressed, inspired by Pinterest.

Popup Menu Tutorial

Below is a demo GIF:

Popup Menu Tutorial

Follow these steps to use it in your project:

Step 1: Add as a Gradle Dependency

Add this in your root build.gradle file (not your module build.gradle file):

allprojects {
    repositories {
        maven { url "" }

Then, add the library to your project build.gradle

dependencies {
    implementation ''

Step 2: Basic Usage

See the sample app for usage within a normal layout, as well as within a list using RecyclerView. In the most basic usage:

View view = findViewById(;

You can also create Actions at runtime:

Drawable icon = ContextCompat.getDrawable(this, R.drawable.ic_favorite_24dp);
String title = getString(R.string.action_favorite);
Action action = new Action(1337, icon, title);
        //more configuring

Step 3: Configuring the QuickActionView

QuickActionView can be customized globally, or on a per Action basis.


Step 4: Configuring Action Items

Use the QuickActionConfig builder to create custom configurations for each action item you create.

//Give one of the quick actions custom colors
Action.Config actionConfig = new Action.Config()

        //the custom Action.Cofig will only apply to the addToCart action

Listening for Events

You can hook into the interesting events a QuickActionView has:



|2.|Read more here.| |3.|Follow code author here.|