<?xml version="1.0" encoding="utf-8"?>
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
android:id="@+id/root"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@color/white"
|
android:orientation="vertical">
|
<TextView
|
android:id="@+id/categoryTextView"
|
android:layout_width="match_parent"
|
android:layout_height="30dp"
|
android:background="@color/gray5"
|
android:gravity="center_vertical"
|
android:paddingLeft="@dimen/item_margin_left_and_right"
|
android:text="群主"
|
android:textColor="@color/gray12"
|
android:textSize="13sp"
|
android:visibility="visible" />
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="60dp"
|
android:background="@drawable/selector_common_item"
|
android:gravity="center_vertical"
|
android:paddingLeft="@dimen/item_margin_left_and_right"
|
android:paddingTop="@dimen/item_margin_top_and_bottom"
|
android:paddingRight="@dimen/item_margin_left_and_right"
|
android:paddingBottom="@dimen/item_margin_top_and_bottom">
|
|
<cn.wildfire.chat.kit.widget.RoundImageView
|
android:id="@+id/portraitImageView"
|
android:layout_width="40dp"
|
android:layout_height="40dp"
|
app:roundSize="10dp"
|
android:scaleType="centerCrop"
|
android:src="@mipmap/avatar_def" />
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_height="match_parent"
|
android:layout_marginLeft="20dp"
|
android:orientation="vertical">
|
|
<TextView
|
android:id="@+id/nameTextView"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:singleLine="true"
|
android:textColor="@color/black1"
|
android:textSize="15sp"
|
tools:text="聊天群" />
|
|
<TextView
|
android:id="@+id/descTextView"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:singleLine="true"
|
android:textColor="@color/gray11"
|
android:textSize="12sp"
|
tools:text="群成员包含" />
|
</LinearLayout>
|
<Button
|
android:id="@+id/btn_add_search"
|
android:layout_marginLeft="@dimen/item_margin_left_and_right"
|
android:layout_width="80dp"
|
android:textSize="@dimen/text_size_micro"
|
android:text="@string/add_friend"
|
android:layout_height="50dp">
|
|
</Button>
|
</LinearLayout>
|
|
<View
|
android:id="@+id/dividerLine"
|
style="@style/Line"
|
android:layout_marginLeft="76dp"
|
android:visibility="visible" />
|
|
</LinearLayout>
|