Android – will you make the recyclerview adapter single?

I have a situation where I have to access the recyclerview adapter from other classes instead of the class that created the adapter object. It is a good thing to make it a singleton object. Please give a solution

resolvent:

No, views and adapters must not be singletons because they are associated with instances of activities

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>