Tsur Yohananov
Tsur Yohananov

Reputation: 543

BottomNavigationView: select non

    BottomNavigationView navigation = (BottomNavigationView) findViewById(R.id.navigation);
    navigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener);

I don't want the first item to be selected automatically.

How can I do so?

tried

navigation.getMenu().getItem(0).setChecked(false);

didn't work

Upvotes: 0

Views: 160

Answers (1)

Tsur Yohananov
Tsur Yohananov

Reputation: 543

This is how I solved it:

navigation.getMenu().setGroupCheckable(0, false, true);

Upvotes: 1

Related Questions