Search View within a Fragment

0

Is it possible to put a search view inside a fragment? In my project I'm using a bottom navigation activity that calls 3 fragments in the button exchange below.

Inside main has this:

 if (position == 1) {
                bottomNavigation.setNotification("", 1);

            }

Then when I'm in position one, I can activate functions such as putting a FloatingActionButton , so I would like to know if to put the search view I would put it in main and then activate it in a certain fragment or I would add directly into the fragment.

Someone there to help?

    
asked by anonymous 01.02.2018 / 14:12

0 answers