[英]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. 我创建了一个与listview和gridview一起使用的片段,我希望它也与RecyclerView一起使用。 The frgament detects the end of list/grid and makes an api call to fetch the next page. 碎片检测列表/网格的结尾,并进行api调用以获取下一页。
我所要做的就是使用适配器模式,因此我的片段可以同时使用两种类型的列表
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.