Change background of selected item
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start at DashboardActivity's OnBottomNavigationItemClickListener and the bottomNavigation.getItem(index).setColor call, then reproduce the StackOverflow reported when changing the selected item. The change is complete when the selected item background matches the supplied screenshot without triggering that failure.
Written by the indexing model from the issue text.
Description
How can I change background of the selected item in order to make it look like this:
I tried to do i this way:
bottomNavigation.getItem(index).setColor(ContextCompat.getColor(DashboardActivity.this, R.color.colorPurpleButtonPressed));
inside of the OnBottomNavigationItemClickListener,
but it causes StackOverFlow
- 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
-
BadgeOpen
Difficulty 3/5 1-2 days Newbie friendliness 30/100
-
Shadow is too tallOpen
Difficulty 3/5 1-2 days Newbie friendliness 20/100
All issues in armcha/LuseenBottomNavigation
Similar issues
-
False Negative: InnerTypeLastCheck does not report members declared after inner enums or annotationsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
checkstyle/checkstyle#22027 ·
Maintainers usually reply within 1 day
-
bug follow-up lane:auto
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Sanne/incus-spawn#1497 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
[CI] NettyClientTest.testServerDisconnection may fail with DisconnectExceptionPossibly taken @yangshangqing95 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100