【发布时间】:2016-12-09 23:57:32
【问题描述】:
我正在使用 tools:listitem 属性在设计布局中使用 recyclerview 显示我的视图。问题是,它们总是显示在垂直列表中。有没有办法让设计布局编辑器水平显示它们?
<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"/>
我想要上面的图像,水平显示。在设计视图中。不在应用程序本身中,我知道该怎么做。
【问题讨论】:
-
sonnv1368 链接无效。 Shaishav 不,不是,这个问题不是关于创建一个水平回收视图,而是关于在 Android Studio 的设计视图中显示它。
-
@easycheese: blog.nkdroidsolutions.com/…
-
@sonnv1368,就像我上面说的,这不是关于如何创建recyclerview的问题。这是关于在 Android Studio 的 DESIGN VIEW 中显示它。
-
@easycheese:是的,我很抱歉。
标签: android xml android-studio