Updating textview on activity once data in adapter class is changed

后端 未结 4 1746
南笙
南笙 2020-12-05 09:07

I am having textview txtQuantity in my dashboard activity. I wrote separate class for custom adapter which will contain sold products.

 protected void onCrea         


        
4条回答
  •  执念已碎
    2020-12-05 09:14

    Override notifyDataSetChanged() in your adapter class ... and do what ever you want ...

    @Override
    public void notifyDataSetChanged() {
        super.notifyDataSetChanged();
       // Your code to nofify
    }
    

提交回复
热议问题