Skip to content
New issue

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

please see this at .setNavigationChangeListener is showing an error error: cannot find symbol method setNavigationChangeListener() @Tanuj1108 #9

Closed
Tanuj1108 opened this issue Mar 14, 2019 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@Tanuj1108
Copy link

bug

@gauravk95 gauravk95 added the duplicate This issue or pull request already exists label Mar 14, 2019
@gauravk95
Copy link
Owner

Same as #6

Your usage is wrong!

R.id.bottom_navigation_view_linear is of the type BubbleNavigationLinearView or it can be of type BubbleNavigationConstraintView

Use like this

BubbleNavigationLinearView bubbleNavigation = findViewById(R.id.bottom_navigation_view_linear);
bubbleNavigation.setNavigationChangeListener(new BubbleNavigationChangeListener() {
        @Override
        public void onNavigationChanged(View view, int position) {
            switch (view.getId()){
                case R.id.l_item_search:
                    Intent in=new Intent(getBaseContext(),Secondactivity.class);
                    startActivity(in);
                    break;
            }
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants