Why do ListView items not grow to wrap their content?

前端 未结 9 700
猫巷女王i
猫巷女王i 2020-11-30 20:26

I have a rather complex ListView, with variable list item heights. Under certain conditions, I need to display an additional view in a list item, which is hidden by default

9条回答
  •  臣服心动
    2020-11-30 20:59

    I use the "AbsListView.LayoutParams" to configure the width and height manually inside "Adapter.getView()".

提交回复
热议问题