Skip to content
This repository has been archived by the owner on Dec 23, 2020. It is now read-only.

Set initially selected item index/id in BottomNavigationView #10

Open
QiiqeAzuara opened this issue Dec 21, 2017 · 0 comments
Open

Set initially selected item index/id in BottomNavigationView #10

QiiqeAzuara opened this issue Dec 21, 2017 · 0 comments

Comments

@QiiqeAzuara
Copy link

since Android Support Library v25.3.0 new method was added:
bottomNavigationView.setSelectedItemId(R.id.item_id);

In ViewSwapper exist an method:
public void showItemAt(int position) {}

both return NullPointerException :(
Log:
Caused by: java.lang.NullPointerException: Attempt to read from field 'int android.support.v4.app.Fragment.mIndex' on a null object reference

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

No branches or pull requests

1 participant