本文来自:安卓航班网  

 如何让你的ListView实现自动滚动呢? Android其实已经考虑到ListView控件的智能滚动操作。直接在Layout中写即可,注意下面的stackFromBottom以及transcriptMode这两个属性。Android123提示大家类似Market客户端的低端不断滚动,Android123将在以后的文章中告诉大家更好的解决方法。涉及代码如下:

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

原文地址:http://www.apkway.com/forum.php?mod=viewthread&tid=2507&extra=page%3D1

posted on 2011-08-04 17:24  泉と緣  阅读(336)  评论(0编辑  收藏  举报