Android: ScrollView Issue

后端 未结 2 796
有刺的猬
有刺的猬 2020-12-08 04:26

I have had a number of problems with ScrollViews. Recently I tried to create a LinearView which content exceeds the screen size so I created the new layout with parent eleme

相关标签:
2条回答
  • 2020-12-08 05:05

    Yes, as Romain said, scrollview needs following combo.

    1. for ScrollView android:fillViewport="true"
    2. for child of ScrollView android:layout_height="wrap_content"
    0 讨论(0)
  • 2020-12-08 05:09

    Your EditText should have a height of wrap_content. fill_parent has no meaning in a ScrollView. If you want the EditText to fill your ScrollView when it's content is smaller than the ScrollView, use android:fillViewport="true" on the ScrollView.

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