在ListView的layout配置中添加 android:transcriptMode="alwaysScroll",

或者在Java代码中执行 lv.setTranscriptMode(ListView.TRANSCRIPT_MODE_ALWAYS_SCROLL);


    <ListView        android:id="@+id/id_listView_contact"        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:layout_alignParentLeft="true"        android:transcriptMode="alwaysScroll"    </ListView>


参考:http://stackoverflow.com/questions/3606530/listview-scroll-to-the-end-of-the-list-after-updating-the-list

更多相关文章

  1. Android 代码设置Color的几种方式
  2. android studio 格式化代码时注解不换行
  3. android 使用Intent传递对象 Serializable 或者 Parcelabel 《第
  4. material design 的android开源代码整理
  5. Android Studio代码混淆,开启Proguard,稍微总结一下
  6. android查询软件(身份证号,号码归属等)源代码

随机推荐

  1. Python多线程编程
  2. Linux 中如何使用 Htop 监控工具?【网络安
  3. Ement语法,元素属性及布局标签
  4. markdown语法练习
  5. markdown的基本操作
  6. markdown和html的基本认识
  7. cg插画怎么学?cg插画入门基础知识
  8. Python "爬虫"出发前的装备之简单实用的
  9. vscode及插件,学习markdown语法,html文档
  10. 2021年中国电子元件营收第一,揭秘立讯精密