Reputation: 4731
I am using the navigation architecture component for my project and planned to use Single Activity architecture. So my app flow is as follows:
SplashScreen
->LoginScreen
->HomeScreen
SplashScreen
, LoginScreen
and HomeScreen
are Fragments.
I have only one activity which will have a NavHostFragment
. As per the design, I want to add a bottomNavigationView
in my HomeScreen
but since the HomeScreen
is a fragment where will I host the bottomNavigationView
?
Upvotes: 2
Views: 586
Reputation: 543
What do you want, in every fragment BottomNavigationView will be available? That means all the fragment can access the BottomNavigationView ?
Upvotes: 1
Reputation: 39863
You could put another NavHostFragment
into HomeScreen
and also add the BottomNavigationView
there.
Your use-case sounds like it's actually containing two distinct navigations:
SplashScreen
->LoginScreen
->HomeScreen
HomeScreen
Upvotes: 2