简体   繁体   English

如何从片段中删除主要活动的底部导航栏?

[英]How to remove bottom nav bar on main activity from fragment?

On clicking on the notification, fragment appearing on screen has bottom navigation bar.单击通知后,屏幕上出现的片段具有底部导航栏。 And I want to remove it as it is not in fragement.我想删除它,因为它不在片段中。 Please help me.请帮我。 ` `

val pendingIntent = NavDeepLinkBuilder(requireContext())
           .setComponentName(MainActivity::class.java)
            .setGraph(R.navigation.mobile_navigation)
            .setDestination(R.id.navigation_pairAnimation)
            .createPendingIntent()

` `

I find it hard to understand you.我觉得很难理解你。 You have set up your Main Activity to host fragments but you don't want it to appear on clicking the notification?您已将 Main Activity 设置为托管 Fragment,但您不希望它在单击通知时出现? Kindly give a more detailed info so that we can help you请提供更详细的信息,以便我们为您提供帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从底部导航栏片段打开一些片段 - How to open some fragment from bottom nav bar fragment 使用库中的片段活动使用底部 NAV 栏更改片段 - Changing fragment using bottom NAV bar using fragment activity in a library 当我从活动中向后按下时,以及在底部导航栏中切换片段时,如何保留recyclerview滚动位置 - How can I retain recyclerview scroll position when i back pressed from activity to fragment and when switching fragments in bottom nav bar 如何在片段中隐藏底部导航栏 - How to hide bottom nav bar in fragment 如何从底部片段获取数据到主要活动? - How to get data from bottom fragment to main activity? 如何从片段更改主要活动底部导航中的徽章编号? - How to change badge number in bottom navigation of main activity from fragment? 为底部导航栏保存片段的活动到活动永远不会到达片段,而是通过 FrameLayout 保存它们的活动 - Activity to activity that holds fragments for bottom nav bar never get to fragment but to the activity that hold them by the FrameLayout 如何将片段目标与底部导航栏中的菜单项联系起来? - How to tie fragment destination to menu items in bottom nav bar? 底部导航栏片段多次 - bottom nav bar fragment multiple times 从 Android 的 BottomSheet 片段中的导航栏中删除间隙/边距 - Remove gap/margin from nav bar in BottomSheet Fragment in Android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM