android自定义ListView高度设置无效

来源:互联网 发布:久其数据 编辑:程序博客网 时间:2024/06/05 14:56

自定义adapter里使用了一个布局,是水平的LeanerLayout,包含多个TextView。设置LeanerLayout的layout_height="80dip",然后TextView的layout_height="fill_parent"会无效

必须设置TextView的为80dip,然后LL的为wrap_content才行。

0 0