material-components / material-components/material-components-android
[Navigation Rail] Unwanted Left Padding
@imhappi is already working on this.
Since Oct 24, 2024.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Description:**
In my app ui, when in landscape mode, I use NavigationRail. It works finely for my purpose but it has an issue of unwanted left/start padding.
**Expected behavior:**
No useless left padding should've been there
**Source code:**
```
```
```
navigationView.apply {
setOnApplyWindowInsetsListener(null)
setPadding(0, 0, 0, 0)
}
```
**Android API version:** Android API 34
**Material Library version:** Material Android Library version 1.12.0
**Device:** Realme GT Neo 3T
**Sample Image**

Note: This issue doesn't occur when app is run on an Android TV
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.
Assessment
This issue has not been assessed yet.