我想用有限的可视项目的简单无尽的滚动横向滚动型像下面的图片: http://i.stack.imgur.com/uDqkn.jpg无尽滚动水平滚动型与有限的可视项目
这样的形象在4次可见的时间,并显示在最后一个项目第一件物品的左侧,就像任何旋转木马作品一样。
目前我使用simpel HorizontalScrollView:
<HorizontalScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:overScrollMode="never"
android:requiresFadingEdge="none"
android:scrollbars="none">
<LinearLayout
android:id="@+id/itv_tabs_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<!--Some Views-->
</LinearLayout>
</LinearLayout>
,但我需要是圆形..喜欢我可以移动到两个方向,没有任何限制
任何建议或链接会有所帮助。
感谢
它看起来像你需要水平的'RecyclerView'具有无限的('Integer.MAX_VALUE')计数项目,从中间位置开始('Integer.MAX_VALUE/2'),并且'getItem'返回items.get(position %items.size())'。显示你当前的工作,适配器和列表初始化 – snachmsm
目前我已经添加了一个简单的Horizntal scrollView,但我需要这是圆形的..就像我可以将它移动到两个方向没有任何限制。 – NehaK
我用过android.widget.HorizontalScrollView – NehaK