第二步 item_layout
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:id="@+id/text_title" android:layout_width="match_parent" android:layout_height="wrap_content" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:id="@+id/img_01" android:layout_width="0dp" android:layout_height="100dp" android:layout_weight="1" /> <ImageView android:id="@+id/img_02" android:layout_width="0dp" android:layout_height="100dp" android:layout_weight="1" /> <ImageView android:id="@+id/img_03" android:layout_width="0dp" android:layout_height="100dp" android:layout_weight="1" /> </LinearLayout> <LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/text_author" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/text_time" /> </LinearLayout> </LinearLayout>