There is activity with actionbar and listview . When selecting an item from the listview I want the actionbar to actionbar completely replaced and the new actionbar displays buttons for actions with the selected item (In applications, this is very often). For example, there was a delete or change button ... How do they do it? How is this implemented? Do they act on the ActionBar element or on top create some kind of layout with the necessary elements? Maybe there is a link to the lesson? But I did not find it ... I just don’t even know how to formulate a question for a search engine.

    1 answer 1

    Use for such purposes Toolbar . Here is an example .

    It is convenient and flexible to set up. Do not forget that when using it you must use the NoActionBar theme.

    • Yes thank you. It seems that it is necessary. It also seems to be possible with the help of ActionMode - Bogdan Shulga