ListActivity has a default layout that consists of a single, full-screen list in the center of the screen. However, if you desire, you can customize the screen layout by setting your own view layout with setContentView() in onCreate(). To do this, your own view MUST contain a ListView object with the id "@android:id/list"  (or list if it's in code)

在Main的<listvie定义的时候,需要写一个系统知道的名字, id "@android:id/list" 。否则系统就找不到。

ListActivity中setContentView()传入的layout中必须有一个id为android:list的ListView

去掉ListView 的分割线

ListView.setDividerHeight(0);

ListView.setDivider(null);

去掉ListView 或各种滚动控件的边界颜色

android:overScrollMode="never"
android:fadingEdge="none"

最新文章

  1. Promise对象
  2. RK 61 键盘 Ubuntu 下键位映射修改方案
  3. Enhanced Mitigation Experience Toolkit 软件安全性强化工具
  4. Windows 10通过本地镜像离线安装.NET 3.5
  5. 数据结构之图 Part2 - 3
  6. 使用phantomjs生成网站快照
  7. Linux 命令 - free: 显示系统的内存信息
  8. Jsoup API解析HTML中input标签
  9. .Net Core迁移到MSBuild平台(二)
  10. JS大小写字母转换
  11. 【算法】CRF(条件随机场)
  12. Vue-admin工作整理(九): 状态管理Vuex-state和getters
  13. Kong(V1.0.2) Securing the Admin API
  14. 排序jq
  15. iOS9下App Store新应用提审攻略
  16. chr(9) chr(10) chr(13) chr(32)
  17. DevExpress GridView 整理
  18. 在github Pages上部署octopress搭建个人博客系统
  19. python: delete the duplicates in a list
  20. c#编程指南(六) 类索引器(Class Indexer)

热门文章

  1. WPF教程五:布局之Canvas面板
  2. 专题实验 Statspack &amp; 9大动态视图
  3. python中copy 与 &#39;=&#39; 的区别
  4. javascript实现记录文本框内文字个数
  5. 关于Struts2的action的execute方法
  6. Spring零散所得
  7. 学习 C++,关键是要理解概念,而不应过于深究语言的技术细节
  8. (转)RTP协议全解(H264码流和PS流)
  9. yii2的Console定时任务创建
  10. PHP利用memcache缓存技术提高响应速度