Android : Change cart menu badge counter from Recycler Adapter
I am trying to develop e-commerce type of app in which user can add item to cart. But I am unable to update the cart badge counter from adapter. Here is screenshot of my app. I am using Recycler view inside fragment. And I am referring this below link for menu item count. https://mobikul.com/adding-badge-count-on-menu-items-like-cart-notification-etc/ My problem is I cannot access menu item from adapter. Here is my fragment code. PriceListFragment.java public class PriceListFragment extends Fragment { public ArrayList<Design> designList; private Single_DesignAdapter adapter; private