帮我写一个能够滚动Android的列表布局代码
时间: 2023-04-02 19:04:12 浏览: 55
当然可以,以下是一个简单的可以滚动的Android列表布局代码:
```
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Item 1" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Item 2" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Item 3" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Item 4" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Item 5" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Item 6" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Item 7" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Item 8" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Item 9" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Item 10" />
</LinearLayout>
</ScrollView>
```