roughike / BottomBar

(Deprecated) A custom view component that mimics the new Material Design Bottom Navigation pattern.
Apache License 2.0
8.42k stars 1.51k forks source link

Behaviors are not accessible through code #741

Open mradzinski opened 7 years ago

mradzinski commented 7 years ago

Let's say I'm using Anko or other DSL library to write my views through code. How can I set the behavior of the BottomBar? There should be a method to set the behaviour through code and it should be a priority.

yombunker commented 7 years ago

yeah currently there doesn't seem to be a way of doing this because it needs to know in advance those behaviors to know how to render things in the first place. This restriction might or not change in the next big release of the library when we are trying to add custom tabs/badges and things like that.