Open in app
Elye
6.7K Followers
About

Sign in

6.7K Followers
About
Open in app
Elye

Elye

·Feb 1

Make sense if all of them are using the same toolbar (which in this case, we can since I don't differentiate them).

However in the actual design that found the issue, each fragment does have it's toolbar menu, which make this more tricky.

You shouldn't call "setSupportActionbar" from onViewCreated() in Fragments.
1

Pablo Morejon

More from Elye

Passionate about learning, and sharing mobile development and others https://twitter.com/elye_project https://www.facebook.com/elye.proj

More From Medium

Android Bi-direction Infinite ViewPager 2 Scrolling

Elye in Mobile App Development Publication

3 Things I’ve Stop Doing Manually As An Android Developer

Elye in Mobile App Development Publication

7 Common Mistakes Easily Made with Android Fragment

Elye in Mobile App Development Publication

Learn Android Navigation Component through Coding

Elye in Mobile App Development Publication

Learning Elasticsearch Basic Easily

Elye in Level Up Coding

Loading Image in Android Jetpack Compose Made Easy

Elye in Mobile App Development Publication

Why I Prefer Imperfect Software Development Practices

Elye in Better Programming

Jetpack Compose Image Content ScaleType Fully Illustrated

Elye in Mobile App Development Publication

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store