Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

setImageResourceActive problem

Open
#23 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
android, java
Domain
mobile

Research direction

Start by reproducing the first-open behavior with the shown BottomNavigationView setup and the setImageResource/setImageResourceActive calls. Trace the initial tab rendering and selection changes; done means the active drawable appears correctly when the app is opened, before any select or unselect action.

Written by the indexing model from the issue text.

Description

Hi,

When I set the drawable via setImageResourceActive() method, the initial drawable resource not shown for first time opened app. after select /unselect the drawable changing working. did i miss anything? can you help for this.

|Thanks.

 final BottomNavigationView bottomNavigationView =(BottomNavigationView)findViewById(R.id.bottomNavigation);

        BottomNavigationItem homeNavigationItem = new BottomNavigationItem
                ("Feed", ContextCompat.getColor(this, R.color.colorAccent), R.drawable.ic_home_icon);
        BottomNavigationItem recentsNavigationItem = new BottomNavigationItem
                ("Recents", Color.parseColor("#553e52"), R.drawable.ic_wall_clock);
        BottomNavigationItem vaskNavigationItem = new BottomNavigationItem
                ("Vask", Color.parseColor("#7B1FA2"), R.drawable.vask_icon);
        final BottomNavigationItem favoritesNavigationItem = new BottomNavigationItem
                ("Favorites",Color.parseColor("#FF5252"), R.drawable.heart_shape);

  favoritesNavigationItem.setImageResource(R.drawable.heart_shape);
        favoritesNavigationItem.setImageResourceActive(R.drawable.vask_icon);

  BottomNavigationItem profileNavigationItem = new BottomNavigationItem
                ("Profile", Color.parseColor("#FF9800"), R.drawable.ic_user_silhouette);

        bottomNavigationView.addTab(homeNavigationItem);
        bottomNavigationView.addTab(recentsNavigationItem);
        bottomNavigationView.addTab(vaskNavigationItem);
        bottomNavigationView.addTab(favoritesNavigationItem);
        bottomNavigationView.addTab(profileNavigationItem);
Dominant language
Java
Stars
1k
Forks
178
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from armcha/LuseenBottomNavigation

All issues in armcha/LuseenBottomNavigation

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.