竖向ScrollView+横向ScrollView+ListView,实现listView可以左右上下滑动
2014-09-12 23:14
323 查看
竖向ScrollView中嵌套横向ScrollView,横向ScrollView嵌套ListView。
具体代码见附件。
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<HorizontalScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/line">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<com.wauoen.fmp_test.MyListView
android:id="@+id/listview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
</LinearLayout>
</HorizontalScrollView>
</RelativeLayout>
</ScrollView>
具体代码见附件。
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<HorizontalScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/line">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<com.wauoen.fmp_test.MyListView
android:id="@+id/listview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
</LinearLayout>
</HorizontalScrollView>
</RelativeLayout>
</ScrollView>
相关文章推荐
- 教你使用HorizontalScrollView和ListView打造左右和上下都可以滑动的列表布局
- 使用RecyclerView实现ListView,GridView的效果(上下,左右滑动),拖拽与滑动删除
- 可滑动控件(ListView,WebView,ScrollView)实现弹性滑动或者取消弹性滑动(上下或左右滑动)
- Android实现了复杂表格,表格内容区域可以与上下滑动、左右滚动,并且标题会跟着滚动
- HorizontalScrollView里嵌套ListView实现上下左右滑动表格
- javascript开发系列---仿listview实现div上下滑动
- Android 使用NineOldAndroids实现绚丽的ListView左右滑动删除Item效果
- 使用viewpager嵌套实现上下左右滑动切换图片(IOS双向滚动翻页效果相同)
- Android 使用Scroller实现绚丽的ListView左右滑动删除Item效果
- android 实现Listview左右滑动删除Item
- Android 使用Scroller实现绚丽的ListView左右滑动删除Item效果
- 用jquery mobile实现手机上的文字或者图片可以左右滑动?
- 用javascript实现以个动画效果(可以上下左右的移动)
- jQuery 实现上下,左右滑动
- 使用viewpager嵌套实现上下左右滑动切换图片(IOS双向滚动翻页效果相同)
- Android 使用Scroller实现绚丽的ListView左右滑动删除Item效果
- listview左右滑动动画实现
- 实现可以横向滑动的Listview
- android 开源项目(二)可以左右拖动删除、调换位置的的listview的 item的实现(drag-sort-listview)
- android 开源项目(二)可以左右拖动删除、调换位置的的listview的 item的实现(drag-sort-listview)