title: showing number of new messages on button when new message comes and when no new message it should not show
body: <p>we have a feature to update the app icon with the new pending messages for the user by showing a small number on the right-top corner of the icon and similarly I would like to know if we have method to update a ImageView/ImageButton in android(Here I am  looking to update the icon on the home screen ).</p>
  
  <p>For example, the pic shows the red background icon with the number of messages pending to be read in red and if there are no messages it shows with a gray background.</p>
  
  <p>how can i do this ? if possible please provide smaple code</p>