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

On CenterFabActivity item menu i_empty is clickable #148

Open
Kolyall opened this issue Dec 14, 2018 · 1 comment
Open

On CenterFabActivity item menu i_empty is clickable #148

Kolyall opened this issue Dec 14, 2018 · 1 comment

Comments

@Kolyall
Copy link

Kolyall commented Dec 14, 2018

How to disable i_empty on CenterFabActivity , to make it not clickable?
If you click near Fab you will see click effect on i_empty at BottomNavigationViewEx

@silvertheo
Copy link

silvertheo commented Oct 29, 2019

you can set like this (kotlin):

// disable click ripple
bnve.getBottomNavigationItemView(1).setBackground(null);
// intercept click event
bnve.setOnNavigationItemSelectedListener { menuItem ->
    if (menuItem.itemId == R.id.navigation_empty) {
        false
    } else {
        selectTab(menuItem.itemId)
        true
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants