How to add item number on the cart icon at top toolbar? Android
<p>I saw some apps made it. So I am intersting at how to do it. I believe there must be some trick way to do it. Example:<a href="https://i.stack.imgur.com/SQz4r.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/SQz4r.jpg" alt="enter image description here"></a></p>

<p>I add the cart icon in the menu file.
`</p>

<pre><code>&lt;item
    android:id="@+id/action_drawer_search"
    android:orderInCategory="300"
    android:title="Search"
    android:icon="@drawable/ic_search_white_24dp"
    app:showAsAction="ifRoom"
    /&gt;
&lt;item
    android:id="@+id/action_drawer_cart"
    android:orderInCategory="200"
    android:title="Cart"
    android:icon="@drawable/ic_shopping_cart_white_24dp"
    app:showAsAction="ifRoom"/&gt;
</code></pre>

<p>
`</p>

<p><a href="https://i.stack.imgur.com/s0UKp.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/s0UKp.jpg" alt="enter image description here"></a></p>