0

我想在视图之间滚动。实际上,我不知道该使用什么:Horizo​​ntalScrollView 或活动?

我想在我的布局之间滑动:

在此处输入图像描述

我需要实现 GestureListener 吗?

Horizo​​ntalScrollView 的问题是我不能有超过 1 个孩子。

4

2 回答 2

3

Sounds like you're looking for a ViewPager, here's a description of them and a video of how it works - http://developer.android.com/training/animation/screen-slide.html

You'll have to use Fragments rather than Activities and if you want to do them on older versions of Android you'll need to use the support library.

于 2013-07-22T18:54:33.847 回答
1

你正在寻找 ViewPager,也看看这个

于 2013-07-22T19:07:45.553 回答