We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying To set setNavigationItemSelectedListener on vNavigation in main activity. but it is giving me nullexception. please tell me how to do so
The text was updated successfully, but these errors were encountered:
try to make setNavigationItemSelectedListener in MyMenuFragment$onCreateView.
@OverRide public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_menu, container, false); ivMenuUserProfilePhoto = (ImageView) view.findViewById(R.id.ivMenuUserProfilePhoto); NavigationView vNavigation = (NavigationView) view.findViewById(R.id.vNavigation); vNavigation.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener() { @OverRide public boolean onNavigationItemSelected(MenuItem menuItem) { return false; } }) ; setupHeader(); return setupReveal(view) ; }
Sorry, something went wrong.
that worrks Thank You
No branches or pull requests
I am trying To set setNavigationItemSelectedListener on vNavigation in main activity.
but it is giving me nullexception.
please tell me how to do so
The text was updated successfully, but these errors were encountered: