123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@drawable/touch_bg"
- android:clickable="true"
- android:padding="8dip">
- <com.netease.nim.uikit.common.ui.imageview.HeadImageView
- android:id="@+id/robot_avatar"
- android:layout_width="@dimen/avatar_size_default"
- android:layout_height="@dimen/avatar_size_default"/>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_alignParentTop="true"
- android:layout_centerVertical="true"
- android:layout_marginLeft="10dp"
- android:layout_toRightOf="@id/robot_avatar"
- android:orientation="vertical">
- <TextView
- android:id="@+id/robot_name"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="4dp"
- android:ellipsize="end"
- android:gravity="center"
- android:maxLines="1"
- android:maxWidth="160dip"
- android:layout_weight="1"
- android:textColor="@color/color_black_333333"
- android:textSize="@dimen/text_size_17"/>
- <TextView
- android:id="@+id/robot_online_state"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="2dp"
- android:ellipsize="end"
- android:singleLine="true"
- android:visibility="gone"
- android:textColor="#999999"
- android:textSize="13sp"/>
- </LinearLayout>
- </RelativeLayout>
|