I try to use tools:listitem
to show correctly styled sample-data on a RecyclerView
. This works fine when using the original view.
But when extending RecyclerView
to create my own custom view to add some functionality it just shows an empty space in the layout-preview in Android Studio.
How can I use all of the layout-preview stuff of a View when extending it?
My View looks like this:
class TestRecyclerView(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int
) : RecyclerView(context, attrs, defStyle) { }
Any ideas?