setImageResourceActive problem
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from armcha/LuseenBottomNavigation
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
-
Difficulty 1/5 Under an hour Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
BadgeOpen
Difficulty 3/5 1-2 days Newbie friendliness 30/100
All issues in armcha/LuseenBottomNavigation
Similar issues
-
Component: Frontend Component: Web Component Type: Maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
it-at-m/refarch-templates#1944 ·
Maintainers usually reply within 2 days
-
priority: p2 type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
googleapis/java-genai#1372 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 60/100
-
GeoSeries scale and skew tests fail with pytest 9.2.0Possibly taken @jiayuasu claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Preventions: a dose saved without a unit reopens blank, and an unchanged save then erases itPossibly taken A pull request linked to this issue is open or already merged. Openpriority: medium Review effort [1-5]: 3 status: needs-triage type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
carlos-emr/carlos#5431 ·
Maintainers usually reply within 1 day