Java 滚动浏览多个列表(水平)
我正在寻找一个选项来滚动多个列表(水平),如附件中的图片。您可以向左或向右滑动以进入下一个listview。在顶部应该有一些按钮,点击或滚动 我尝试将ListView放入类似于此代码的内容中,但它无法正常工作Java 滚动浏览多个列表(水平),java,android,Java,Android,我正在寻找一个选项来滚动多个列表(水平),如附件中的图片。您可以向左或向右滑动以进入下一个listview。在顶部应该有一些按钮,点击或滚动 我尝试将ListView放入类似于此代码的内容中,但它无法正常工作 <HorizontalScrollView android:id="@+id/horizontalScroll" android:layout_width="match_parent" android:layout_height="w
<HorizontalScrollView
android:id="@+id/horizontalScroll"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbarFadeDuration="250">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginBottom="0px">
<Button
android:id="@+id/buttonOne"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/Black"
android:text="hallo"
android:textColor="@color/White">
</Button>
<Button
android:id="@+id/buttonTwo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/Black"
android:text="hallo"
android:textColor="@color/White">
</Button>
</LinearLayout>
</HorizontalScrollView>
我明白了。我要找的工具是ViewPager