首页 > 系统 > Android > 正文

android ListView自动滚动方法

2019-10-24 21:06:26
字体:
来源:转载
供稿:网友
直接在Layout中写即可,注意下面的stackFromBottom以及transcriptMode这两个属性
 
复制代码代码如下:

<ListView android:id="listCWJ" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:stackFromBottom="true" 
android:transcriptMode="alwaysScroll" 
/> 

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表