Android Quick Actions UI Pattern

The question:

I’m interested in incorporating the Android UI pattern called “Quick Action”. Basically, it’s a context menu that doesn’t cover up the data that is being acted on. I’d like to implement this but I cannot find some sample code or an API to help me out.

Note this UI pattern is discussed in the YouTube video,

Does anyone have an implementation of this or know what Google’s standard is for adding this to an application?

Android Quick Actions UI Pattern

The Solutions:

Below are the methods you can try. The first solution is probably the best. Try others if the first one doesn’t work. Senior developers aren’t just copying/pasting – they read the methods carefully & apply them wisely to each case.

Method 1

Till the official Twitter app is open sourced by Google, you may want to take a look at this implementation:

Really easy to use and works great.

Method 2

Interesting Question. Android uses this pattern in their Contacts-App. You can get the source using git:

git clone git://

I did this and quickly grepped it, but I didn’t get a conclusive result. I think that’s done in “Contacts/src/com/android/contacts/ui/”, but I am not completely sure.

I you google for QuickContact android, there are a lot of images that show exactly the kind of menu that you want, so it seems likely that it is indeed called QuickContact in that context.

Looking at the Documentation, I don’t see any inherited classes that you could use to do this for something other than contacts.

So, a few starting points, but no solution from me 😉

Method 3

This open source project has the same look and feel for the quick actions popup as the twitter app:

It helps to download the whole project because you need a number of drawables, images, and other resources from that project.

The main demo class is called The other classes you need is, and

After that, it’s really easy and works great. I use it for my apps.

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Comment