I have an Activity that has an ActionBar , but I need to dynamically change the icons to an ActionBar , I have a pause and a play button, and I need to replace the play button with the pause button as the user clicks on it. I searched and I found it:
@Override public boolean onCreateOptionsMenu(Menu menu) { if(DEBUG) Log.i("onCreateOptionsMenu()", "onCreateOptionsMenu() -> LogicAnalizerView");
Thus, I delete the Pause button, and I can also add it, but this only happens when the Activity and ActionBar launched. How can I make the ActionBar redraw? Also, in this way, the entire ActionBar redrawn. It is right? Is there a way to redraw just the button / icon I want?
Thank:)
android android-actionbar
Andres Jun 13 2018-12-12T00: 00Z
source share