sephiroth74 / Material-BottomNavigation

Bottom Navigation widget component inspired by the Google Material Design Guidelines at https://www.google.com/design/spec/components/bottom-navigation.html
MIT License
1.47k stars 239 forks source link

Behavior on FloatingActionButton inside fragment doesn't work #12

Open perchi opened 8 years ago

perchi commented 8 years ago

I have a main activity which contains container for fragments and a control for bottom navigation:

<android.support.design.widget.CoordinatorLayout>
      <android.support.v7.widget.FitWindowsFrameLayout android:id="@+id/content" ... />
      <it.sephiroth.android.library.bottomnavigation.BottomNavigation ... />
</android.support.design.widget.CoordinatorLayout>

then the fragment view contain FloatingActionButton, but the button is overlaped with bottom navigation, because it is not in the same CoordinatorLayout ... any suggestion how to fix that?

schelbin commented 8 years ago

Hello... Any advanced in this issue? Thanks

iNoles commented 8 years ago

I think you should put FloatingActionButton inside of CoordinatorLayout then control it by Visibility.