【发布时间】:2018-06-20 13:52:02
【问题描述】:
您好,我想创建一个水平滚动视图,但它是垂直的。你能帮忙吗?
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="horizontal">
<ListView
android:id="@+id/household_member_list"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
</HorizontalScrollView>
下面是出现的内容:
请帮忙。谢谢。
【问题讨论】:
-
为什么要使用 HorizontalScrollView?是不是要创建一个水平的ListView?
-
使用 recyclerview 代替 listview 轻松创建横向行为
-
嗨,乌德什。是的,我正在尝试创建一个水平 ListView
标签: android listview android-studio horizontal-scrolling horizontalscrollview