Cannot infer type arguments for ArrayAdapter<>

后端 未结 4 1384
感情败类
感情败类 2021-02-20 08:06

I am still playing around with my calendar, I already nearly managed to integrate the https://github.com/SundeepK/CompactCalendarView into one of my fragments. There is just one

4条回答
  •  鱼传尺愫
    2021-02-20 08:48

    If you are in a Fragment so you should use

    ArrayAdapter adapter = new ArrayAdapter<>(**getContext()**,android.R.layout.simple_list_item_1,items);
    

提交回复
热议问题