Floatingactionbutton ,how to appear on all screens?

Asked

Viewed 55 times

0

How do I make this Floatingactionbutton (Email button) appear on all my screens , without having to put one on each screen? inserir a descrição da imagem aqui

  • 1

    If they are activities different, you need to put him in all of them.

  • 1

    if Voce created it from the normal menu to create android studio app, this floatactinobutton is part of an Activity that uses Fragments, it is sufficient that Voce implement several Fragments using always the Activity main and works in those Fragments to be displayed in it, is easier to deal with, like this

1 answer

2

The Floatingactionbutton is inserted in the created Activity. To have this effect you want the advisable you work by changing the core of the screen through Fragments. With this the button will always be visible to all screens as it will be present on Activity while Fragments are switched. In case you need to create another Activity you need to insert a new one Floatingactionbutton.

Example of how to work with Fragments: https://github.com/codepath/android_guides/wiki/Fragment-Navigation-Drawer

Browser other questions tagged

You are not signed in. Login or sign up in order to post.