动态显示大量内容方法:scrollView
首先布局:
<ScrollView >
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/scrollView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
</LinearLayout>
</ScrollView>
代码:
在onCreate方法中取到scrollView1