Scrollview inside constraint layout does not scroll to the bottom of the parent constraint

前端 未结 10 1341
予麋鹿
予麋鹿 2020-12-03 02:34

I have a form which has around 12/13 fields. I used a Scrollview inside a constraint layout. Below is the hierarchy of the XML layout. The problem is, it doesn\

10条回答
  •  攒了一身酷
    2020-12-03 03:27

    In my case, I had a tall TextView (height set to wrap_content) inside a ScrollView (height set to 0dp and being constraint on the top and bottom). No suggestions worked, but I solved the problem by wrapping the TextView inside a FrameLayout (height set to wrap_content).

提交回复
热议问题