How to control the application panel when using fragments?

I use one action as a container and several fragments. Some fragments need to display the application panel, and some do not, while others need to show a special application panel (for example, an application panel that shrinks as you scroll up). So where should I put the application bar (or action bar), in an action or in fragments?

By the way, if I place the application panel inside fragments, how should I properly manage the application bars when fragments enter or exit?

+4
source share
1 answer

, , , Toolbar.

- ActionBar, , . API- , ActionBar, .

, , .

+1

Source: https://habr.com/ru/post/1599495/


All Articles