aurelhubert / aurelhubert/ahbottomnavigation

Hide BottomNavigation when replacing fragment

Open
#322 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
3.8k
Forks
672
PR merge metrics
No merged PRs in 30d

Description

I'm replacing fragment from my custom adapter ... when i replace fragment how should i remove or hide
AHBottomNavigation still that replaced fragment is active ... or should i customize my xml layout .... Is there any way to do that ... #Thankx

> XML

> CODE
` FragmentManager fragmentManager = ((FragmentActivity) context).getSupportFragmentManager();
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);
fragmentTransaction.replace(R.id.frame_container, new SavedReq_frag(),MYTAG);
fragmentTransaction.addToBackStack(null);
fragmentTransaction.commit();`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the RelativeLayout XML and the fragment replacement entry point using fragmentTransaction.replace(R.id.frame_container, ...). Check how AHBottomNavigation is attached to the layout and how fragment changes are handled; done means the bottom navigation is hidden or removed when the replacement fragment is active without breaking the existing layout.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.