Bottombar: Show/Hide BottomBar programmatically

Created on 9 Apr 2016  路  4Comments  路  Source: roughike/BottomBar

Although it is possible to show/hide the bottomBar by applying the offset animation on my own, it would be nice to trigger that programmatically via the BottomBar class functions.

Possible use case: Another activity was opened which gets closed now. The activity with the BottomBar becomes active again and now shows different content (e.g. previously a list, but now less items as they have been "completed" in the other activity). The BottomBar is still outside the screen, as the user scrolled. Now it would be good to show the BottomBar again programmatically.

enhancement

Most helpful comment

Have the show() and hide() methods been removed?

All 4 comments

@roughike I'll fix this. Put enhancement tag.

Now it's possible using the show() and hide() methods. A nice animation by @NikolaDespotoski appears when using with attachShy() inside a CoordinatorLayout.

Is it possible that something got interchanged? I need to call mBottomBar.hide(); to get the bottomBar moved back into the view.
I guess that https://github.com/roughike/BottomBar/blob/master/bottom-bar/src/main/java/com/roughike/bottombar/BottomBar.java#L1012 should be !visible.

Have the show() and hide() methods been removed?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BlaineOmega picture BlaineOmega  路  7Comments

rodrigobressan picture rodrigobressan  路  4Comments

vikramkakkar picture vikramkakkar  路  3Comments

tinybright picture tinybright  路  3Comments

ryanhoo picture ryanhoo  路  3Comments