Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modified bottom-nav-bar #4489

Closed
wants to merge 1 commit into from
Closed

Conversation

Yogeshjindal
Copy link

Added text labels to the bottom nav bar
Added active state (eg. "icon background pill")

Now, all the items in nav bar shows the labels and upon selection the activeIndicator is enabled which shows that which item is selected.
Fix#4484

@CLAassistant
Copy link

CLAassistant commented Oct 5, 2024

CLA assistant check
All committers have signed the CLA.

@Yogeshjindal
Copy link
Author

@JuancaG05 Please provide a review.

@JuancaG05 JuancaG05 self-requested a review October 7, 2024 06:27
@JuancaG05 JuancaG05 linked an issue Oct 7, 2024 that may be closed by this pull request
Copy link
Collaborator

@JuancaG05 JuancaG05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Yogeshjindal! Thanks a lot for your contribution! 🍻 I just reviewed your PR, take a look at it, but I'll point out some comments as well:

Since there are several changes required and the content of the PR is not that big, I would suggest to close this PR and open a new one, it'll be quicker 😃. But it's up to you. If you decide not to close this one, remember to rename the branch and commit and use conventional commits from now on, also rebase the branch against master 👍

Comment on lines +57 to +58
app:activeIndicatorEnabled="true"
app:activeIndicatorColor="@color/active_indicator_color"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These 2 attributes seem not to exist, at least on the version of the BottomNavigationView that we're using. You can check this because the app build fails (take a look at the BitRise checks or check it locally in your computer)

@@ -42,6 +42,7 @@
<color name="actionbar_start_color">@color/primary</color>
<color name="primary_button_background_color">@color/color_accent</color>
<color name="primary_button_text_color">@color/white</color>
<color name="active_indicator_color">#3F51B5</color>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you decide this color? We should keep consistency as far as we can with colors in the app 😃. In this case, it may even not be necessary, the active indicator is enabled by default (with the color already provided in app:itemTextColor), but maybe you can play with app:itemActiveIndicatorStyle to see different options

@JuancaG05
Copy link
Collaborator

Hi @Yogeshjindal! Wanna try to open a new PR with the guidelines I provided and have your code included in our project? 😄

@Yogeshjindal
Copy link
Author

Hi @Yogeshjindal! Wanna try to open a new PR with the guidelines I provided and have your code included in our project? 😄

Hi @JuancaG05 Sir,I have submitted another pull request for this issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants