material-components / material-components/material-components-android
[AppBarLayout] liftOnScroll not working properly when having EditText with minLines/minHeight attr. as one of children in scrolling view
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Description:**
liftOnScroll not working properly when having EditText with minLines/minHeight attr. as one of children in scrolling view
View is scrolled along with edittext that keep expanding to the next line. But liftOnScroll elevation still not shown until reach minLines/minHeight attrs.
Try playaround with sample code and see elevation on toolbar when typing in edittext.
**Expected behavior:** liftOnScroll elevation should be shown correctly.
**Source code:** [appbarlayout-elevation.zip](https://github.com/material-components/material-components-android/files/4431000/appbarlayout-elevation.zip)
**Android API version:** Target 29
**Material Library version:** 1.1.0
**Device:** Huawei P9 w/ Android 7.0. Huawei Mate 30 Pro w/ Android 10. Pixel 2 w/ Android 10.
To help us triage faster, please check to make sure you are using the [latest version](https://github.com/material-components/material-components-android/releases) of the library.
We also happily accept [pull requests](https://github.com/material-components/material-components-android/pulls).
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 by running the attached appbarlayout-elevation.zip sample on the listed Android environments and reproduce the behavior while typing in the EditText. Read the Material Components Android implementation around AppBarLayout and liftOnScroll, then verify that toolbar elevation appears while the field expands rather than only after reaching its minLines or minHeight.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100