去除ListView滑到頂部和底部時邊緣的黑色陰影:
android:fadingEdge="none"
----------------------------------------------------
去除拖動時默認的黑色背景:
android:cacheColorHint="#00000000"
或
listView.setCacheColorHint(Color.TRANSPARENT);
----------------------------------------------------
去除選中時的黃色底色:
android:listSelector="#00000000"
或
listView.setSelector(new ColorDrawable(Color.TRANSPARENT));
---------------------------------------------------
去除行與行之間的黑線:
android:divider=" #00000000 "
或
listView.setDivider(null);
---------------------------------------------------
ListView刷新後自動滾到最底部:
listView.setSelection( listView .getAdapter().getCount()-1);
去掉滑動條:
android:scrollbars="none"
設置最小行高: www.2cto.com
在item xml文件中根元素設置:android:minHeight="xxdip"
給listview添加addFootView:
View footView=getLayoutInflater().inflate(R.layout.footview, null);
listview.addFooterView(footView);
listview.setAdapter(adapter);