我.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>
然而,手机呈现的图像如下:
为什么?
我认为您必须与我们分享您的适配器和适配器项目布局。 –