有没有办法在Android Studio编辑器中显示RecyclerView内容的预览? [英] Is there a way to show a preview of a RecyclerView's contents in the Android Studio editor?

查看:194
本文介绍了有没有办法在Android Studio编辑器中显示RecyclerView内容的预览?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将RecyclerView添加到布局时,它显示为空白屏幕.有没有一种方法,例如通过tools命名空间,来显示RecyclerView内容的预览?

When I add the RecyclerView to the layout, it shows up as a blank screen. Is there a way, such as through the tools namespace, to show a preview of the content of the RecyclerView?

推荐答案

@oRRs是正确的!

@oRRs is right !

我正在使用Android Studio 1.4 RC2,现在您可以指定任何自定义布局.

I'm using Android Studio 1.4 RC2 and you can now specify any custom layout.

我尝试了一个自定义CardView,它可以工作.

I tried a custom CardView and it works.

tools:listitem="@android:layout/simple_list_item_checked"

这篇关于有没有办法在Android Studio编辑器中显示RecyclerView内容的预览?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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