105 lines
3.8 KiB
XML
105 lines
3.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Copyright (c) 2022 NetEase, Inc. All rights reserved.
|
|
~ Use of this source code is governed by a MIT license that can be
|
|
~ found in the LICENSE file.
|
|
-->
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="#FFFBFB"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/topLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:visibility="gone"
|
|
tools:ignore="MissingConstraints">
|
|
|
|
<com.netease.yunxin.kit.common.ui.widgets.TitleBarView
|
|
android:id="@+id/titleBar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dimen_52_dp"
|
|
app:head_img_visible="visible"
|
|
app:head_title="@string/conversation_title"
|
|
app:head_title_color="@color/color_black"
|
|
tools:ignore="MissingConstraints" />
|
|
|
|
<View
|
|
android:id="@+id/conversationLine"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dimen_1_dp"
|
|
android:alpha="0.6"
|
|
android:background="@color/color_e9eff5"
|
|
tools:ignore="MissingConstraints" />
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/bodyTopLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
tools:ignore="MissingConstraints" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/bodyLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical"
|
|
tools:ignore="MissingConstraints">
|
|
|
|
<TextView
|
|
android:id="@+id/errorTv"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="36dp"
|
|
android:background="@color/color_fee3e6"
|
|
android:gravity="center"
|
|
android:text="@string/conversation_network_error_tip"
|
|
android:textColor="@color/color_fc596a"
|
|
android:textSize="14dp"
|
|
android:visibility="gone" />
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<com.netease.yunxin.kit.conversationkit.ui.view.ConversationView
|
|
android:id="@+id/conversationView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
|
|
<LinearLayout android:id="@+id/emptyLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dimen_188_dp"
|
|
android:layout_marginTop="@dimen/dimen_150_dp"
|
|
android:visibility="gone"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:layout_width="@dimen/dimen_118_dp"
|
|
android:layout_height="@dimen/dimen_96_dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:src="@drawable/ic_conversation_empty"/>
|
|
|
|
<TextView android:id="@+id/empty_tv"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:text="@string/conversation_empty_tip"/>
|
|
|
|
</LinearLayout>
|
|
</FrameLayout>
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/bottomLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
tools:ignore="MissingConstraints" />
|
|
|
|
</LinearLayout> |