ListView自動滾動方法

直接在Layout中寫即可,注意下面的stackFromBottom以及transcriptMode這兩個屬性。

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





發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章