遇到的问题: 一个Acticity界面中,最上面有一个RelativeLayout 下面有一个ScrollView,但是ScrollView的滚动条是全屏的,向上拖动时ScrollView的内容会覆盖到RelativeLayout上面。
解决办法:
1: android:layout_height="match_parent"
2: android:layout_below="@+id/top" 其中id为top的layout 即是ScrollView上方的RelativeLayout
同理如果ScrollView下方有一个RelativeLayout,如要ScrollView不覆盖RelativeLayout,那么就用到 android:layout_above="@id/bottom"
感谢 Android 开发者们 qq群里面的 少年:∥:唯旳薆 群昵称好像叫 玛莎 恩。感谢!