material-components / material-components/material-components-android
[Toolbar] navigationIconTint works differently in Android 5
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Description:** Full description of issue here
**Expected behavior:**
In Android 5 the tint only affects certain layer which is our preferred behavior
In Android 6 and above the tint changes the whole color of navigation icon
**Source code:**
This is the drawable of navigation icon which uses layer and resource qualifier of day and night.
```
// Dynamic day and night color
```
Toolbar
```
```
Theme
```
<item name="android:paddingStart">0dp</item>
<item name="android:paddingEnd">20dp</item>
<item name="contentInsetStart">0dp</item>
<item name="contentInsetEnd">0dp</item>
<item name="contentInsetStartWithNavigation">0dp</item>
<item name="navigationIconTint">@color/colorPrimaryDark_White</item>
```
Usage
```
<item name="android:windowTranslucentStatus">true</item>
<item name="toolbarStyle">@style/AppToolbarForCollapsing</item>
```
**Android API version:** 5
**Material Library version:** 1.11.0
**Device:** Pixel emulator
Contributor guide
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.
Research direction
Start with MaterialToolbar navigationIconTint handling and the supplied layer-list navigation drawable, then reproduce the difference on Android API 21 and API 23 or later. Compare the rendered tint behavior with the issue’s screenshots; done means the navigation icon’s layered appearance is consistent with the expected behavior across the affected versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100