JAVA Eclipse开发Android如何让超出界面的部分自动显示滚动条

在原有布局的最外围添加一层ScrollView,注意原有布局的声明也要删了

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:tools="http://schemas.android.com/tools"

android:layout_width="match_parent"

android:layout_height="match_parent"

android:overScrollMode="ifContentScrolls">

</ScrollView>

 

 

 

原文地址:https://www.cnblogs.com/acetaohai123/p/6755108.html