Invalidateoptionmenu() Disables The Clicking Functionality Of Toolbar Menu
In my eCommerce app, I am using cart basket with count textview. Here for updates the cart count textview I used invalidateOptionMenu(); after that the clicking of cart navigates n
Solution 1:
instead of calling invalidateOptionMenu()
inside your onCreateOptionsMenu()
you should call it when you are updating the count value
that you set in basketCount
TextView
.
Calling invalidateOptionsMenu()
is of no avail there, so when you add item to your cart at that you should call invalidateOptionsMenu()
.
Post a Comment for "Invalidateoptionmenu() Disables The Clicking Functionality Of Toolbar Menu"