title: Android Button Notifications like messages button
body: <p>Does anyone have an idea of how the message button, notifies and updates us on the top corner how many unread messages are there and how do you do it. Thanks in advance this is a sample picture of what i want,</p>
  
  <p><img src="https://i.stack.imgur.com/POILL.jpg" alt="enter image description here"></p>
  
  <p>And this a sample usual xml code for a button in android,</p>
  
  <pre><code> &lt;Button
          android:id="@+id/bAddRec"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:gravity="center"
          android:text="@string/add" /&gt;
  </code></pre>
  
  <p>And I hope that your answers will be useful to others as well :)</p>