【发布时间】:2017-07-20 09:50:26
【问题描述】:
我的 .xml 文件有以下代码:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:orientation="vertical"
android:id="@+id/image_list"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>
但是,手机呈现图像如下:
为什么?
【问题讨论】:
-
我认为您必须与我们分享您的适配器和适配器项目布局。
标签: android android-recyclerview vertical-alignment