项目中需要一个水平移动的控件 ,不知道是不是由于冲突,用HorizontalListview的时候 出现很卡的情况 ,并且 好像 和外层的刷新控件冲突 ,然后出现 不能滑动 ,然后看见还有个HorizontalScrollview 这个控件 ,感觉滑动 的时候 比HorizontalListview连贯 ,没出现卡的情况,但是有个问题 是添加数据的时候 感觉比较不好,要么是直接手动添加布局,看网上比价好的做法是 <com.krish.horizontalscrollview.CenterLockHorizontalScrollview
android:id="@+id/scrollView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
</LinearLayout>
android:id="@+id/scrollView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
</LinearLayout>
</com.krish.horizontalscrollview.CenterLockHorizontalScrollview>