Setting custom image view as action bar's menu icon

I would like to add one of the menu icons of the action bar as below.

I need an icon and a bubble on top of that and I need to display a number on that at run time. Is it possible to do? I have Googled regarding this, but couldn't find exact way to do.

Thanks in advance.

Answers


what you want is call "badge"

A simple way to "badge" any given Android view at runtime without having to cater for it in layout.

try this Lib

https://github.com/jgilfelt/android-viewbadger


Need Your Help

Java solution (framework / library / API) for real crossplatform applications / apps

java android ios cross-platform packager

I dont know but it seems there are several solutoins for Java (Java SE, ME ...) for different platforms so you have to write different versions of the same application for all devices (iOS, Android,

How to detect orientation change from the statusbar

android android-intent orientation broadcastreceiver listener

Under the Statusbar, there are five buttons - Wifi, Bluetooth, GPS, Silent Mode and Auto Rotation. I haven't figured out a way yet to detect when a user click the Auto Rotation button.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.