material-components / material-components/material-components-android

[Toolbar] navigationIconTint works differently in Android 5

Open
#3,943 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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
image

In Android 6 and above the tint changes the whole color of navigation icon
image

**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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.