Skip to content
Advertisement

Tag: android-toolbar

Android NavigationDrawer and Toolbar in all fragments, plus TabLayout into one

I would like to create an Android app that uses a navigation drawer which loads different fragments, all of which include a toolbar/appbar and one that also has a TabView with ViewPager2, something like this: So I started a new Java project with Android Studio and chose the Navigation Drawer Activity template that creates 3 different fragments. This is my

MenuItem doesn’t appear in toolbar

I’m facing a problem. I can’t make a toolbar to show me a menu. I know that this question was asked here previously here, and I went through all possible solutions, but none of them gave me desired result. So I’m using 1 activity and few fragments and I want to show different menu items in a toolbar according to

Android Multiline Toolbar Title

I have a Toolbar that when in landscape mode isn’t as wide as usual, but it has more height than usual and for that reason I want to set the title to be multiline (2 lines to be precise) when it is in landscape. I have tried some things where I put a TextView inside of the Toolbar, but when

Advertisement