我正在使用工具:listitem属性在设计布局中使用recyclerview显示我的视图。问题是,它们总是出现在垂直列表中。有没有办法让设计布局编辑器水平显示它们?Android设计布局ListItem RecyclerView Horizontal
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:listitem="@android:layout/simple_list_item_checked"/>
我想上述图像,水平显示。在设计视图中。不是在应用程序本身,我知道如何做到这一点。
您可以阅读这篇文章[HTTP://blog.nkdroidsolutions。 com/android-horizontal-vertical-recyclerview-example /] – sonnv1368
这是否有帮助:http://stackoverflow.com/questions/28460300/how-to-build-a-horizontal-listview-with-recyclerview? – Shaishav
sonnv1368该链接无效。 Shaishav不,它不是,这个问题不是关于创建水平的回收站视图,而是关于在Android Studio的设计视图中显示它。 – easycheese