Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to show a preview of a RecyclerView's contents in the Android Studio editor?

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?

like image 354
nclarkclt Avatar asked Apr 28 '15 21:04

nclarkclt


1 Answers

@oRRs is right !

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

I tried a custom CardView and it works.

tools:listitem="@android:layout/simple_list_item_checked" 
like image 130
Philippe David Avatar answered Oct 10 '22 00:10

Philippe David