Open fmt-Println-MKO opened 7 years ago
I found a work-around for now:
app:layout_behavior
to use this custom behavior.child.setTranslationY(t - dependency.getResources().getDimensionPixelSize(R.dimen.fab_margin));
Should the shadow height be subtracted too? Anyone know how to get the FAB button shadow height?
if the FAB is anchored to BottomNavigation and the Behavior is set on FAB (the one provided)
the FAB is always above BottomNav, doesn't matter which values are set for marginBottom on FAB or marginTop on BottomNav.
the only visible space between them is just the space the shadow takes.
according to Material Design the FAB should be 16dp above, BottomNav or Bottom