<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" > <RelativeLayout android:id="@+id/item_layout" android:layout_width="match_parent" android:layout_height="@dimen/dp_54" android:background="@color/cl_home_listview_bg" > <TextView android:id="@+id/item_time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_marginLeft="@dimen/dp_6" android:textColor="@color/cl_order_text_title" android:text="2017-9-68 78:90:00" android:textSize="@dimen/sp_13.3" /> <com.dayu.bigfish.views.MyTextView android:id="@+id/item_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_alignParentRight="true" android:layout_marginRight="@dimen/dp_6" android:ellipsize="marquee" android:singleLine="true" android:textColor="@color/cl_tab_init" android:text="2017-9-68 78:90:00" android:textSize="@dimen/sp_10" /> </RelativeLayout> </LinearLayout>