当前位置: 移动技术网 > IT编程>移动开发>Android > android listview 水平滚动和垂直滚动的小例子

android listview 水平滚动和垂直滚动的小例子

2019年07月24日  | 移动技术网IT编程  | 我要评论

少年残像txt,免费占卜,陈安之超级成功学

网上有很多解决 android listview 水平和垂直滚动的代码,我没有按照他们说的做(以前没搜到 o(∩_∩)o~) 我采用的是添加horizontalscrollview
java代码
复制代码 代码如下:

 < scrollview android:id="@+id/scrollview01"
 android:layout_height="300px"
 android:layout_x="16px"
 android:layout_y="84px"
 android:layout_width="290px"
 android:scrollbars="horizontal|vertical">
 < horizontalscrollview android:id="@+id/horizontalscrollview01"
 android:layout_height="fill_parent"
 android:layout_width="wrap_content">
 < linearlayout android:id="@+id/linearlayout02"
 android:layout_width="wrap_content"
 android:orientation="vertical"
 android:layout_height="fill_parent">
 < listview android:id="@+id/listview"
 android:layout_height="300px"
 android:layout_width="fill_parent">
 < /listview>
 < /linearlayout>
 < /horizontalscrollview>
 < /scrollview>

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网