我有一个LinearLayout,里面有许多动态添加的TextView。所谓“许多”,是指它们超出了屏幕底部。我想使用ScrollView使用户能够滚动到屏幕外并查看其余的TextView。目前,我的activity_main.xml文件如下所示:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<LinearLayout
android:id="@+id/ll"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="61dp"
android:orientation="vertical" >
</LinearLayout>
</ScrollView>
非常感谢您的帮助!如果有任何问题,请随时联系我们。谢谢!