最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

android - Facing Issue when using TabLayout, BottomSheetFragment and NavigationComponent - Stack Overflow

programmeradmin3浏览0评论

Hey guys I got stuck in a strange scenario I have a bottom sheet with Tab Layout. Each contains a fragment. Consider we have Fragment A and Fragment B. In fragment B I have added Nav graph with 2 fragment C and D. But when I reach to D and press back the bottom sheet get closed. But actually i want that i can go back to C when User Presses System Back Button and if the currently visible fragment is C then Bottom Sheet will get Closed.

Note: Have Tried onBackPressedCallback in Fragment D but it is not working.

发布评论

评论列表(0)

  1. 暂无评论