Android small counter next to a button

前端 未结 3 980
情歌与酒
情歌与酒 2021-02-10 15:46

I would like to add a small counter next to a button to show the remaining quantity for some items, for example, the remaining number of tips remaining unused. Targeted layout w

3条回答
  •  心在旅途
    2021-02-10 16:32

    use this - and keep updating the textviews text with the count

     
    
     
    
      
         android:background="@drawable/your_counter_red_background"/>
     
    

提交回复
热议问题