Cannot add header view to list — setAdapter has already been called

后端 未结 10 2071
夕颜
夕颜 2020-12-03 13:38

I have one edittext field and one \"search\" button. When I click on search, I have to display a list view with data corresponding to the values entered in the edittext. I h

10条回答
  •  天命终不由人
    2020-12-03 14:16

    Cannot add header view to list -- setAdapter has already been called. which you can see, the myList.addHeaderView(header) must be execute before myList.setAdapter(adapter);

提交回复
热议问题