Custom Adapter getView() method is not called

后端 未结 6 1258
悲&欢浪女
悲&欢浪女 2020-11-22 09:49

Here is the code of the fragment in which I am setting a custom adapter to the list.

There no errors but the ListView is empty. I have implemented

6条回答
  •  孤城傲影
    2020-11-22 10:03

    You are missing the super class in the constructor. See my example below:

    public AppDataAdapter(Activity a, int textViewResourceId, ArrayList entries) {
        super(a, textViewResourceId, entries);
        this.entries = entries;
        this.activity = a;
    }
    

提交回复
热议问题