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

后端 未结 4 1509
别那么骄傲
别那么骄傲 2020-11-30 16:53

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

4条回答
  •  误落风尘
    2020-11-30 16:59

    @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"
    

提交回复
热议问题