title: How to implement dynamic values on menu item in Android
body: <p>I have a menu item in the action bar. Along with the menu item image, I need to show some number associated with it which will change often.  I am not using Action bar sherlock. I don't want to use that. Other than this everything else just works fine. In the shown image, the white icon color icon is mine. I need to generate the number with the red color background dynamically. How can I do that in Android?</p>
  
  <p>Here is the sample image:</p>
  
  <p><img src="https://i.stack.imgur.com/tPczI.png" alt="enter image description here"></p>
  
  <p>Update:</p>
  
  <p>I have this menu item in my menu.xml. This should work like a notification menu item which shows the number of notification count. I set the menu icon like,</p>
  
  <pre><code> menuItem.setIcon(image);
  </code></pre>
  
  <p>Now, on top of the menu item I need to place one text view which has the total count of notifications. </p>
  
  <p>is it possible to implement this functionality with viewbadger?
  <a href="https://github.com/jgilfelt/android-viewbadger" rel="noreferrer">Github url</a></p>