简体   繁体   中英

How can I make my code to work with both listview and recyclerview

I have created a frgament that works with listview and gridview I want it to work with RecyclerView as well. The frgament detects the end of list/grid and makes an api call to fetch the next page.

我所要做的就是使用适配器模式,因此我的片段可以同时使用两种类型的列表

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM