Status Update
Comments
ni...@gmail.com <ni...@gmail.com> #2
Hello,
Thank you for reaching out to us!
This issue seems to be outside of the scope of Issue Tracker. This Issue Tracker is a forum for end users to report bugs
and request features
on Google Cloud products. Please go through
I recommend you to
For now, I'm going to close this thread which will no longer be monitored. In case you want to report a new issue, please do not hesitate to create a new Issue Tracker describing your issue.
Thank you!
al...@android.com <al...@android.com>
bo...@gmail.com <bo...@gmail.com> #3
In my use case, the BottomNavigationView is inside a fragment, inside a FrameLayout which is contained in a CoordinatorLayout and the scroll to hide technique works, but in reverse compared to how it's supposed to work. Using the BottomNavigationView directly inside the CoordinatorLayout doesn't have any scroll behavior though.
cr...@gmail.com <cr...@gmail.com> #4
al...@android.com <al...@android.com> #5
ni...@gmail.com <ni...@gmail.com> #6
au...@google.com <au...@google.com> #7
[Deleted User] <[Deleted User]> #8
ni...@gmail.com <ni...@gmail.com> #9
ni...@gmail.com <ni...@gmail.com> #10
If android:background is used on < 21, shadow is overlaid over the background. Elevation does not cast upward shadow, does it? So the method addCompatibilityTopDivider() in current 25.0.1 should be available for all versions.
au...@google.com <au...@google.com> #11
Am I missing something?
ni...@gmail.com <ni...@gmail.com> #12
[Deleted User] <[Deleted User]> #13
ak...@gmail.com <ak...@gmail.com> #14
th...@gmail.com <th...@gmail.com> #15
<android.support.design.widget.BottomNavigationView
android:elevation="40dp"
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="@color/darkestGray"
app:itemIconTint="@drawable/nav_item_color_state"
app:itemTextColor="@drawable/nav_item_color_state"
app:menu="@menu/bottom_navigation_widget" />
vn...@gmail.com <vn...@gmail.com> #16
<android.support.design.widget.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="@color/colorPrimary"
android:elevation="8dp"
app:elevation="8dp"
app:itemIconTint="@drawable/bottom_nav_color_state"
app:itemTextColor="@drawable/bottom_nav_color_state"
app:menu="@menu/bottom_navigation_main"/>
gd...@gmail.com <gd...@gmail.com> #17
sh...@gmail.com <sh...@gmail.com> #18
au...@google.com <au...@google.com>
bo...@gmail.com <bo...@gmail.com> #19
ga...@google.com <ga...@google.com> #20
Passing bug to Avigail to comment about bottom nav elevation behavior.
ka...@gmail.com <ka...@gmail.com> #21
cm...@gmail.com <cm...@gmail.com> #22
bo...@gmail.com <bo...@gmail.com> #23
appBarLayout.addOnOffsetChangedListener(new AppBarLayout.OnOffsetChangedListener() {
@Override
public void onOffsetChanged(AppBarLayout appBarLayout, int verticalOffset) {
bottomNavigationView.setTranslationY(verticalOffset*-1);
}
});
However, when trying the same technique, while having the BottomNavigationView inside a FrameLayout, which itself is the child of the parent CoordinatorLayout, the BottomNavigationView doesn't even show up in the UI.
Trying the same AppBarLayout OffsetChangedListener on a different UI component (such as a FAB), while inside the FrameLayout, works just as if the FAB was a direct child of the CoordinatorLayout.
So what's the difference between the 2 setups? Why does the FAB work, but not the BottomNavigationView?
Also, where's the scrolling behavior that was about to be released?
af...@google.com <af...@google.com> #24
See class documentation for BottomNavigationView:
And for HideBottomViewOnScrollBehavior:
This is available in our 28.0.0-alpha1 release or the 1.0.0-alpha1 release or later.
pu...@gmail.com <pu...@gmail.com> #25
a CollapsingToolbarLayout would do with app:layout_scrollFlags="scroll|snap" ?
ga...@gmail.com <ga...@gmail.com> #26
is it yet to be fixed ? Here is my layout
<android.support.design.widget.BottomNavigationView
android:id="@+id/landing_bottom_nav"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@color/white"
app:elevation="4dp"
android:elevation="4dp"
app:layout_constraintBottom_toBottomOf="parent"
app:menu="@menu/landing_menu"/>
sr...@gmail.com <sr...@gmail.com> #27
af...@google.com <af...@google.com> #28
@srinivasmakkena058 Could you please provide a video showing the scrolling whitespace issue? And could you file a separate issue, since the scroll behavior doesn't appear to be missing, which is the issue described in the title of this bug?
@pujos.michael Please file a separate bug about elevation concerns. I looked into bottom navigation elevation a couple years back, and I believe it's actually sort of WAI that the shadow hardly shows -- the light source is at the top of the screen which would make the shadow show at the bottom of the bar. Happy to discuss and address in a separate issue, but let's keep this one focused on scroll behavior.
Description
Version used: 25.0.0
Theme used: Any
Devices/Android versions reproduced on: Any >= KitKat
BottomNavigationView is missing:
- Scrolling behavior inside CoordinatorLayout
- 8dp elevation in order to be above the snackbar.
Relevant link: