florent37 / ExpansionPanel

Android - Expansion panels contain creation flows and allow lightweight editing of an element.
https://material.io/guidelines/components/expansion-panels.html
Apache License 2.0
1.98k stars 240 forks source link

Scrollbar not scrolling when panel expanded and edittext focused #46

Open Clopma opened 5 years ago

Clopma commented 5 years ago

The focused Edittext (also AutocompleteText etc) remains on the top of the screen and doesn't let the user scroll.

Clopma commented 5 years ago

Quick workaround;

Surround your EditText and all the space arround it until a ExpansionLayout or the top of the screen with a ExpansionLayout expanded as default and without any linked Header:


//Whatever is before your first EditText
<com.github.florent37.expansionpanel.ExpansionLayout
app:expansion_expanded="true">
//A layout containing your EditText and all non-ExpansionLayout-wrapped content until the next ExpansionHeader
 </com.github.florent37.expansionpanel.ExpansionLayout>
//Actual necessary ExpansionHeader & Layout
...