I need to add a textview dynamically in the centre on top of a basket icon in the action bar (see pic below). Each time a user adds an item to basket, that textview will be updated to show subtotal amount in the basket.
When the basket is empty, just the basket icon is displayed. The textview will be added the first time a user adds an item to the basket. If the basket gets empty, the textview will be removed
If anyone could help.
Thanks