I an unable to figure out any possible solution to load drawer items dynamically i.e hide and show particular items as required in Navigation component Architecture Android. Reason being Navigation component architecture forces us to manually inflate drawer by adding items in xml and then add it through code.
Please help if anyone has any idea to do it dynamically like fetching the items from API and populating them.
Note:- Those who don't have idea please do not underrate it or ask for un-necessary code snippet as this fact is a descriptive one and not any code issue.
question from:https://stackoverflow.com/questions/65840997/dynamic-navigation-drawer-item-in-navigation-component-architecture-android