question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to implement the navigation bar goodness?

See original GitHub issue

I 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:closed
  • Created 8 years ago
  • Comments:33 (15 by maintainers)

github_iconTop GitHub Comments

3reactions
roughikecommented, Mar 18, 2016

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.

1reaction
roughikecommented, Mar 18, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found