Skip to content

Add selected icon feature for tab bar item#276

Open
bbdroid wants to merge 3 commits into
aurelhubert:masterfrom
bbdroid:selected-icon
Open

Add selected icon feature for tab bar item#276
bbdroid wants to merge 3 commits into
aurelhubert:masterfrom
bbdroid:selected-icon

Conversation

@bbdroid

@bbdroid bbdroid commented Aug 20, 2017

Copy link
Copy Markdown

Solved Problem

We can't apply selected icon for tab bar item.

Test

Set force tint as either false or true.

bottomNavigation.setForceTint(false);

false : ignore tint color, apply selected icon
true : apply tint color, ignore selected icon

Set selected icon as third parameter.

AHBottomNavigationItem item1 = new AHBottomNavigationItem(R.string.tab_1, R.drawable.map, R.drawable.map_selected, R.color.color_tab_1);

If you set force tint flag as false, selected icon will be applied.
If it's true, selected icon will be ignored. And tint colour will be used for selected state.

@Rainer-Lang

Copy link
Copy Markdown

@bdavid68 @aurelhubert I would really appreciate to get this merged. Any chance?

@bmc08gt

bmc08gt commented Oct 1, 2017

Copy link
Copy Markdown

This feature would be great for my current usecase

@bbdroid

bbdroid commented Oct 2, 2017

Copy link
Copy Markdown
Author

@aurelhubert @bmc08gt I am not sure why @aurelhubert doesn't merge this PR.

@Crash--

Crash-- commented Nov 20, 2017

Copy link
Copy Markdown

@aurelhubert What do you think of this PR? Is it ok for you or do we need to fix some stuff?

@seba1342 seba1342 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

delicious work

@yahwem1

yahwem1 commented Nov 18, 2024

Copy link
Copy Markdown

Want it to be free of cost.

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.

6 participants