Skip to content

Instantly share code, notes, and snippets.

@StefMa
StefMa / Controllers.kt
Last active October 22, 2020 16:16
BottomNavigation with Conductor
private const val ROUTER_STATES_KEY = "STATE"
/**
* This is the base implementation of a [Controller] which works hand in hand with the [BottomNavigationView].
*
* It is designed to work like that:
* * [Textual explanation](https://i.imgur.com/EqqQyOY.png)
* * [Visual explanation](https://i.imgur.com/FDb6EGU.png)
*
* In other words. It should be behave exactly like the [iOS TabBar](http://apple.co/2y6XIrL)