有没有办法在Android Studio编辑器中显示RecyclerView内容的预览?

有没有办法在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"