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

Gap between the main view and the navigation #13

Closed
ErionTp opened this issue Jul 20, 2021 · 3 comments
Closed

Gap between the main view and the navigation #13

ErionTp opened this issue Jul 20, 2021 · 3 comments

Comments

@ErionTp
Copy link

ErionTp commented Jul 20, 2021

How can I remove the gap between a view and the bottom navigation?

The FragmentContainerView is constrained app:layout_constraintBottom_toTopOf="@+id/nav_view" where the nav_view is the CurvedBottomNavigationView, in this case there is a white gap.

I cant set app:layout_constraintBottom_toBottomOf="parent" cause I have some recycler view and the last item when I scroll is invisible

@susonthapa
Copy link
Owner

I don't know if I fully understand your problem, but the white gap may the result of the shadow. I think for your case it would be best to use app:layout_constraintBottom_toBottomOf="parent" and use give bottom padding equal to the height of the CurvedBottomNavigationView and then set clipToPadding to false. This way, the list items will appear behind the BottomNavigation and the last item will be visible as we have set the padding. Let me know if that fixes your issue. You can also attach the picture of the white gap so that I can find if there is any bugs in the library.

@ErionTp
Copy link
Author

ErionTp commented Jul 31, 2021

I did as you suggested, so I set the bottom padding of the view to 56dp, and everything is displayed correctly. Thank you

@susonthapa
Copy link
Owner

Glad to hear that, I'm closing this issue.

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