在“回收者"视图中一次显示单个项目 [英] Show Single Item at a time in Recycler view

查看:48
本文介绍了在“回收者"视图中一次显示单个项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在WearableRecyclerView中显示项目列表.截至目前,我越来越像这样

I'm showing list of items in WearableRecyclerView. As of now I am getting like this

但是我需要在页面中显示单行(单项),向下滚动,然后显示下一个项.

But I need to show Single Row(Single Item) in a Page,Scroll down,then show next Item.

在Android应用程序中有帮助吗?

Any Help to do this in android app?

推荐答案

您可以通过两种方式来实现.

You can do it by two way.

选项1:将回收者视图的宽度和高度都放到match_parent.这将一次在屏幕上覆盖一个项目,并且需要滚动查看下一个项目.

option 1: putting recycler view item width and height both to match_parent.which will cover the screen with with one item at a time and need to scroll for see the next item.

选项2:使用此会做确切的事情您正在寻找的.

option 2: use this library which will do the exact thing that you are looking for.

这篇关于在“回收者"视图中一次显示单个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆