armcha / armcha/LuseenBottomNavigation
Bug and Problem in Use this Library.
- Dominant language
- Java
- Stars
- 1k
- Forks
- 178
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
tank you.
i import your lib. and gradle is ready.
but in my layout have problem
----
```
```
Error show in Android Studio :
```
java.lang.IndexOutOfBoundsException: Position must be less or equivalent than items size, items size is -1 current is 0 at com.luseen.luseenbottomnavigation.BottomNavigation.BottomNavigationView.onSizeChanged(BottomNavigationView.java:156) at android.view.View.sizeChange(View.java:17641) at android.view.View.setFrame(View.java:17603) at android.view.View.layout(View.java:17520) at android.view.ViewGroup.layout(ViewGroup.java:5612) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1741) at android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1730) at android.widget.LinearLayout.onLayout(LinearLayout.java:1496) at android.view.View.layout(View.java:17523) at android.view.ViewGroup.layout(ViewGroup.java:5612) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323) at android.widget.FrameLayout.onLayout(FrameLayout.java:261) at android.view.View.layout(View.java:17523) at android.view.ViewGroup.layout(ViewGroup.java:5612) at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1079) at android.view.View.layout(View.java:17523) at android.view.ViewGroup.layout(ViewGroup.java:5612) Copy stack to clipboard Tip: Try to refresh the layout.
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the reported layout using the XML in the issue and follow the stack trace to BottomNavigationView.java:156, especially its onSizeChanged path. Confirm the expected behavior for the bottom navigation and identify what prevents the IndexOutOfBoundsException during layout.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100