Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何在RecycleView中使用不同的视图_Android_Header_Android Recyclerview - Fatal编程技术网

Android 如何在RecycleView中使用不同的视图

Android 如何在RecycleView中使用不同的视图,android,header,android-recyclerview,Android,Header,Android Recyclerview,我想在RecycleView中使用不同的视图,就像在图像上一样。 我在RecycleView中使用过一次的视图,其他视图如图像上的2,3,4,5。 你能为我推荐什么?试试这个链接: 您可以添加标题并使用StaggedGridLayoutManager使用StaggedGridLayoutManager@小阳光谢谢。如果你写shrot示例代码或写链接,我接受你的答案

我想在RecycleView中使用不同的视图,就像在图像上一样。

我在RecycleView中使用过一次的视图,其他视图如图像上的2,3,4,5。 你能为我推荐什么?试试这个链接:


您可以添加
标题
并使用
StaggedGridLayoutManager

使用StaggedGridLayoutManager@小阳光谢谢。如果你写shrot示例代码或写链接,我接受你的答案