<?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="wrap_content" android:orientation="horizontal" android:background="?android:attr/selectableItemBackground" xmlns:tools="http://schemas.android.com/tools"> <TextView android:layout_gravity="center_vertical" tools:text="刚刚 姚**预约了" android:layout_marginLeft="15dp" android:id="@+id/tv_out_content_before" android:textColor="#999" android:textSize="12dp" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <TextView android:layout_gravity="center_vertical" tools:text="周艳玲" android:layout_marginLeft="6dp" android:id="@+id/tv_out_doctor_name" android:textSize="12dp" android:textColor="#0CACF4" android:lines="1" android:ellipsize="end" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <TextView android:id="@+id/tv_out_content_after" android:layout_gravity="center_vertical" tools:text="老师的电话倾诉" android:layout_marginLeft="6dp" android:textColor="#999" android:textSize="12dp" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" /> </LinearLayout>