今天在开发中遇到一个问题,经搜索后搞定,记录一下:在item的layout文件中,用android:layout_height设置item的高度。运行,高度设置无效。解决办法:给item设定minHeight,即可。