Correct use of setEmtpyView in AdapterView

后端 未结 5 1058
情话喂你
情话喂你 2020-12-05 00:17

I\'m really having trouble using the setEmptyView method. I tried it to implement it in GridView and ListView, but both of them didnt work. Here a sample codeblock:

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-05 00:46

    For my case, gridView.setEmptyView(emptyView) was called but it's not show the emptyview. Unless I called gridView.setVisibility(View.VISIBLE), so it appear normally;

提交回复
热议问题