How to add the first menu at top app bar and the second at bottom app
bar? Can I do this in one acivity or I should create Activity
with top
app bar + fragment with bottom ap bar?
You'll probably be able to do that with onCreateOptionsMenu()
for the top of the Activity
, (called Toolbar
) then use a NavigationDrawer
and another View
(Can be a custom view like LinearLayout
with ImageView
s or etc) or another Toolbar
in the bottom.
Or, using custom view and inflating menu
s by onCreateOptionsMenu()
.
This might help for two Toolbar
s in one Activity
: https://stackoverflow.com/a/37002188/4409113
Also: https://stackoverflow.com/a/34906999/4409113
In your case (as we can see in the picture), i believe there is a Toolbar
at top of Activity
, with CoordinatorLayout
which has FloatingActionButton
in the middle and there will be just inflating in java-kotlin side left.