Fragment cannot be converted to context?

后端 未结 2 636
挽巷
挽巷 2021-01-29 07:16

I am developing an Android app with Recyclerview + Cardview with GridLayout in this I got the error as in the title.

Reminders.java (Fragment Class)

             


        
2条回答
  •  故里飘歌
    2021-01-29 08:17

    You can just send getContext() as a parameter which is accessible from your Fragment.

提交回复
热议问题