Can't resize a RelativeLayout inside a ScrollView to fill the whole screen

后端 未结 1 1325
傲寒
傲寒 2020-12-23 16:11

I am having a weird issue that I am not sure how to fix. I have a RelativeLayout inside a ScrollView and this scrollView has it\'s height set to fill_parent. So does the Rel

相关标签:
1条回答
  • 2020-12-23 16:59

    I have faced this problem before. Just Use android:fillViewport="true" in your scrollview and it will fill up the screen.

     <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
            android:id="@+id/scrollView1"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
             android:fillViewport="true" >
    
    0 讨论(0)
提交回复
热议问题