How to implement the navigation bar goodness?
See original GitHub issueI want to get this result.
Here is my current code:
bottomBar = BottomBar.attach(this, savedInstanceState);
bottomBar.setItemsFromMenu(R.menu.bar, new OnMenuTabSelectedListener() {
@Override
public void onMenuItemSelected(int resId) {
}
});
bottomBar.mapColorForTab(0, ContextCompat.getColor(this, R.color.primary_dark));
bottomBar.mapColorForTab(1, ContextCompat.getColor(this, R.color.md_teal_600));
bottomBar.mapColorForTab(2, ContextCompat.getColor(this, R.color.md_red_500));
bottomBar.mapColorForTab(3, ContextCompat.getColor(this, R.color.md_blue_grey_500));
But the result of this code is a black navbar.
What am I missing?
Issue Analytics
- State:
- Created 8 years ago
- Comments:33 (15 by maintainers)
Top Results From Across the Web
Responsive navigation bar - Web design tutorial - YouTube
You've got a lot of options when adding navigation to your project, and one of the most common and powerful ways to do...
Read more >5 Tips For a Perfect Website Navigation Menu - Jimdo
Does your website navigation need help? · Tip 1: Limit the number of menu options · Tip 2: Use short, concise names for...
Read more >Designing the Ideal Navigation Bar - The Creative Momentum
Establish navigational cues ... As we mentioned above, part of creating a great nav bar is creating an intuitive experience. Use navigational cues ......
Read more >5 Best Practices For Website Navigation Bar Design (And ...
If we've learned anything in eCommerce, it's that small things make a big difference. Here's 5 best practices for structuring your site's navigation...
Read more >Styling a navigation bar using CSS - Code The Web
To get started, create a new project folder and create blank index.html and style.css files inside. Let's get going and fill them up!...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

You could try
bottomBar.attach(findViewById(R.id.sv_items_wrapper), savedInstanceState). If that doesn’t work, try attaching it to different views you have.If this doesn’t work, let me know and I’ll try my best to fix it during this weekend.
Right now I have some important business (=getting shitfaced with cheapest possible beer) to do, but I’ll get back to you in a couple days.
Looks like it’s not drawing behind the Navigation Bar on that device.
I probably know the solution for this problem, and I’ll fix this in a couple days.