Ask Your Question
0

What is the issue when navigating from a child fragment to a bottom navigation fragment?

asked 2021-07-18 11:00:00 +0000

david gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-06-02 22:00:00 +0000

lakamha gravatar image

The issue when navigating from a child fragment to a bottom navigation fragment is that the child fragment may not have access to the bottom navigation view, and therefore cannot directly perform the navigation action. To overcome this issue, you can use callbacks or interfaces to communicate between the child fragment and the parent fragment, which has access to the bottom navigation view. The parent fragment can then perform the navigation action on behalf of the child fragment.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-07-18 11:00:00 +0000

Seen: 12 times

Last updated: Jun 02 '22