Issue using setEmptyView on a ListActivity

后端 未结 3 2036
抹茶落季
抹茶落季 2020-12-30 18:19

I have the following setup, and the empty view text doesn\'t show up...

protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstance         


        
3条回答
  •  北荒
    北荒 (楼主)
    2020-12-30 18:47

    I was missing a setContentView(R.layout.listview); and because of this the view was not picked upped by findViewById.

提交回复
热议问题