listview的item为RelativeLayout时android:layout_alignParentBottom无效的解决方法

来源:互联网 发布:北京电信网络 编辑:程序博客网 时间:2024/05/22 12:03

1. 需要设置item的高度为确定的值,比如:

android:layout_height="?android:attr/listPreferredItemHeight"

2.在2.2 版本下,还需要

convertView = mInflater.inflate(R.layout.list_item_kind, parent, false);   convertView = mInflater.inflate(R.layout.list_item_kind, null); //error


 

0 0