Android ScrollView not respecting child's bottom margin

后端 未结 2 453
情歌与酒
情歌与酒 2021-01-04 19:20

I have an android layout_file that looks something like the following



        
相关标签:
2条回答
  • 2021-01-04 19:47

    Try setting

    android:fillViewport="true"
    

    in your ScrollView. It will give it full height and then you can apply bottom margin.

    0 讨论(0)
  • 2021-01-04 19:59

    I ran into the same problem. To solve, I used padding instead of margin and then I set android:fillViewport="true" for ScrollView. Anything goes well now!

    0 讨论(0)
提交回复
热议问题