<ScrollView android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" >
把需要滑动的代码放在这里面
</LinearLayout> </ScrollView>