Open dmitryermichev opened 7 years ago
I want to change menu icon in floatsearchview, for example:
floatingSearchView.setOnMenuItemClickListener(new FloatingSearchView.OnMenuItemClickListener() { @Override public void onActionMenuItemSelected(MenuItem item) { if(item.getItemId() == R.id.action_location) { if(locationEnabled) { item.setIcon(R.drawable.ic_action_location_disabled); locationEnabled = false; Log.d(this.getClass().getName(), "location disabled"); } else { item.setIcon(R.drawable.ic_action_location); locationEnabled = true; Log.d(this.getClass().getName(), "location enabled"); } } } });
Icon not changing. I can't find any methods like invalidate(), or something like this.
Any solution ?
i also need this
Any solution? Any hell?
me to, so I change style to tab for replaced menu
I want to change menu icon in floatsearchview, for example:
Icon not changing. I can't find any methods like invalidate(), or something like this.