431 lines
19 KiB
XML
431 lines
19 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@android:color/white"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/top_lyy"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="148dp"
|
|
android:background="@mipmap/chat_bg_index"
|
|
android:orientation="vertical">
|
|
|
|
<com.hbl.yuliao.widget.StatusLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
<TextView
|
|
android:id="@+id/tv_chatfm_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_marginStart="@dimen/dp_15"
|
|
android:text="@string/chat_txt"
|
|
android:textStyle="bold"
|
|
android:textColor="#2C2C2C"
|
|
android:textSize="@dimen/sp_22" />
|
|
<ImageView
|
|
android:layout_width="@dimen/dp_32"
|
|
android:layout_height="@dimen/dp_32"
|
|
android:layout_marginEnd="@dimen/dp_15"
|
|
android:id="@+id/kefu_iv"
|
|
android:src="@mipmap/b_kefu"/>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="@dimen/dp_32"
|
|
android:layout_height="@dimen/dp_32"
|
|
android:layout_marginEnd="@dimen/dp_15"
|
|
>
|
|
<ImageView
|
|
android:id="@+id/iv_chatfm_contact"
|
|
android:layout_width="@dimen/dp_32"
|
|
android:layout_height="@dimen/dp_32"
|
|
android:src="@mipmap/tab_message"/>
|
|
<ImageView
|
|
android:id="@+id/view_chatfm_notifypoint1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@mipmap/tab_dot"
|
|
android:layout_alignParentRight="true"
|
|
android:visibility="gone"/>
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="@dimen/dp_32"
|
|
android:layout_height="@dimen/dp_32"
|
|
android:layout_marginEnd="@dimen/dp_15"
|
|
>
|
|
<ImageView
|
|
android:id="@+id/iv_indexfm_notifytop"
|
|
android:layout_width="@dimen/dp_32"
|
|
android:layout_height="@dimen/dp_32"
|
|
android:src="@mipmap/tab_tonzhi"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/view_chatfm_notifypoint"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@mipmap/tab_dot"
|
|
android:layout_alignParentRight="true"
|
|
android:visibility="gone"/>
|
|
</RelativeLayout>
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_chatfm_add"
|
|
android:layout_width="@dimen/dp_32"
|
|
android:layout_height="@dimen/dp_32"
|
|
android:layout_marginEnd="@dimen/dp_15"
|
|
android:src="@mipmap/tab_add"/>
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp"
|
|
android:layout_marginBottom="@dimen/dp_10"
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="@dimen/dp_15"
|
|
android:paddingRight="@dimen/dp_15"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<include
|
|
android:id="@+id/layout_chatfm_common_search"
|
|
layout="@layout/layout_common_search"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp_40"
|
|
app:layout_constraintLeft_toLeftOf="@+id/tv_chatfm_title"
|
|
app:layout_constraintRight_toRightOf="@+id/iv_chatfm_contact"
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_chatfm_title" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?actionBarSize"
|
|
android:background="@android:color/white"
|
|
android:gravity="bottom"
|
|
android:visibility="gone"
|
|
android:orientation="horizontal">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/layout_chatfm_all"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:onClick="chatClick"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintTop_toBottomOf="parent">
|
|
|
|
<View
|
|
android:id="@+id/view_chatfm_allpoint"
|
|
android:layout_width="@dimen/dp_8"
|
|
android:layout_height="@dimen/dp_8"
|
|
android:layout_marginLeft="-20dp"
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
android:background="@drawable/point_chat_ff4e54"
|
|
android:visibility="gone"
|
|
app:layout_constraintLeft_toRightOf="@+id/tv_chatfm_all"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_chatfm_all"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp"
|
|
android:layout_marginTop="@dimen/dp_4"
|
|
android:gravity="center"
|
|
android:text="@string/tableall_txt"
|
|
android:textColor="@color/color_333333"
|
|
android:textSize="@dimen/sp_16"
|
|
android:textStyle="bold"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/iv_chatfm_allindicator"
|
|
android:layout_width="0dp"
|
|
android:layout_height="@dimen/dp_2"
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
android:background="@drawable/cornor_c9a3e6_2dp"
|
|
app:layout_constraintLeft_toLeftOf="@+id/tv_chatfm_all"
|
|
app:layout_constraintRight_toRightOf="@+id/tv_chatfm_all"
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_chatfm_all" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<View
|
|
android:layout_width="1dp"
|
|
android:layout_height="@dimen/dp_20"
|
|
android:layout_marginBottom="@dimen/dp_16"
|
|
android:background="#EDE3E3" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/layout_chatfm_friends"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:onClick="chatClick"
|
|
app:layout_constraintLeft_toRightOf="@+id/layout_chatfm_all"
|
|
app:layout_constraintTop_toTopOf="@+id/layout_chatfm_all">
|
|
|
|
<View
|
|
android:id="@+id/view_chatfm_frinedspoint"
|
|
android:layout_width="@dimen/dp_8"
|
|
android:layout_height="@dimen/dp_8"
|
|
android:layout_marginLeft="-20dp"
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
android:background="@drawable/point_chat_ff4e54"
|
|
android:visibility="gone"
|
|
app:layout_constraintLeft_toRightOf="@+id/tv_chatfm_friends"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_chatfm_friends"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp"
|
|
android:layout_marginTop="@dimen/dp_4"
|
|
android:gravity="center"
|
|
android:text="@string/tablefriend_txt"
|
|
android:textColor="@color/color_7f7b81"
|
|
android:textSize="@dimen/sp_16"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/iv_chatfm_friendindicator"
|
|
android:layout_width="0dp"
|
|
android:layout_height="@dimen/dp_2"
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
android:background="@drawable/cornor_c9a3e6_2dp"
|
|
android:visibility="invisible"
|
|
app:layout_constraintLeft_toLeftOf="@+id/tv_chatfm_friends"
|
|
app:layout_constraintRight_toRightOf="@+id/tv_chatfm_friends"
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_chatfm_friends" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<View
|
|
android:layout_width="1dp"
|
|
android:layout_height="@dimen/dp_20"
|
|
android:layout_marginBottom="@dimen/dp_16"
|
|
android:background="#EDE3E3" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/layout_chatfm_group"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:onClick="chatClick"
|
|
app:layout_constraintLeft_toRightOf="@+id/layout_chatfm_friends"
|
|
app:layout_constraintTop_toTopOf="@+id/layout_chatfm_all">
|
|
|
|
<View
|
|
android:id="@+id/view_chatfm_grouppoint"
|
|
android:layout_width="@dimen/dp_8"
|
|
android:layout_height="@dimen/dp_8"
|
|
android:layout_marginLeft="-20dp"
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
android:background="@drawable/point_chat_ff4e54"
|
|
android:visibility="gone"
|
|
app:layout_constraintLeft_toRightOf="@+id/tv_chatfm_group"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_chatfm_group"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp"
|
|
android:layout_marginTop="@dimen/dp_4"
|
|
android:gravity="center"
|
|
android:text="@string/tableteam_txt"
|
|
android:textColor="@color/color_7f7b81"
|
|
android:textSize="@dimen/sp_16"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/iv_chatfm_groupindicator"
|
|
android:layout_width="0dp"
|
|
android:layout_height="@dimen/dp_2"
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
android:background="@drawable/cornor_c9a3e6_2dp"
|
|
android:visibility="invisible"
|
|
app:layout_constraintLeft_toLeftOf="@+id/tv_chatfm_group"
|
|
app:layout_constraintRight_toRightOf="@+id/tv_chatfm_group"
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_chatfm_group" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<View
|
|
android:layout_width="1dp"
|
|
android:layout_height="@dimen/dp_20"
|
|
android:visibility="gone"
|
|
android:layout_marginBottom="@dimen/dp_16"
|
|
android:background="#EDE3E3" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/layout_chatfm_follow"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:visibility="gone"
|
|
android:onClick="chatClick"
|
|
app:layout_constraintLeft_toRightOf="@+id/layout_chatfm_group"
|
|
app:layout_constraintTop_toTopOf="@+id/layout_chatfm_all">
|
|
|
|
<View
|
|
android:id="@+id/view_chatfm_follow"
|
|
android:layout_width="@dimen/dp_8"
|
|
android:layout_height="@dimen/dp_8"
|
|
android:layout_marginLeft="-20dp"
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
android:background="@drawable/point_chat_ff4e54"
|
|
android:visibility="gone"
|
|
app:layout_constraintLeft_toRightOf="@+id/tv_chatfm_follow"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_chatfm_follow"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp"
|
|
android:layout_marginTop="@dimen/dp_4"
|
|
android:gravity="center"
|
|
android:text="@string/tebiezhuanzhu_txt"
|
|
android:textColor="@color/color_7f7b81"
|
|
android:textSize="@dimen/sp_16"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/iv_chatfm_followindicator"
|
|
android:layout_width="0dp"
|
|
android:layout_height="@dimen/dp_2"
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
android:background="@drawable/cornor_c9a3e6_2dp"
|
|
android:visibility="invisible"
|
|
app:layout_constraintLeft_toLeftOf="@+id/tv_chatfm_follow"
|
|
app:layout_constraintRight_toRightOf="@+id/tv_chatfm_follow"
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_chatfm_follow" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</LinearLayout>
|
|
|
|
<!-- <View-->
|
|
<!-- android:layout_width="match_parent"-->
|
|
<!-- android:layout_height="0.5dp"-->
|
|
<!-- android:background="#EDE3E3" />-->
|
|
|
|
<TextView
|
|
android:id="@+id/errorTv"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/color_fceeee"
|
|
android:gravity="center"
|
|
android:paddingStart="@dimen/dimen_35_dp"
|
|
android:paddingTop="@dimen/dimen_10_dp"
|
|
android:paddingEnd="@dimen/dimen_5_dp"
|
|
android:paddingBottom="@dimen/dimen_10_dp"
|
|
android:text="@string/conversation_network_error_tip"
|
|
android:textColor="@color/color_50_000000"
|
|
android:textSize="14dp"
|
|
android:visibility="gone"
|
|
android:layout_below="@id/top_lyy"
|
|
app:drawableStartCompat="@drawable/ic_error"
|
|
/>
|
|
|
|
|
|
<androidx.viewpager2.widget.ViewPager2
|
|
android:id="@+id/viewpager_fm_chat"
|
|
android:layout_width="match_parent"
|
|
android:overScrollMode="never"
|
|
android:layout_height="match_parent"
|
|
android:layout_below="@id/errorTv" />
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:visibility="gone"
|
|
android:id="@+id/float_menu_ry">
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/dp_218"
|
|
app:cardCornerRadius="@dimen/dp_10"
|
|
android:layout_marginTop="90dp"
|
|
android:layout_alignParentRight="true"
|
|
app:cardBackgroundColor="@color/white"
|
|
app:cardElevation="@dimen/dp_5"
|
|
android:layout_marginEnd="@dimen/dp_15">
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center_vertical"
|
|
android:paddingTop="@dimen/dp_5"
|
|
android:paddingBottom="@dimen/dp_5"
|
|
android:paddingEnd="@dimen/dp_22"
|
|
android:orientation="vertical">
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:gravity="center_vertical"
|
|
android:drawablePadding="@dimen/dp_10"
|
|
android:paddingStart="@dimen/dp_20"
|
|
android:drawableLeft="@mipmap/tab_bianji"
|
|
android:text="编辑列表"
|
|
android:textColor="#ff333333"
|
|
android:textSize="16sp"
|
|
android:id="@+id/bianji_tv"
|
|
/>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:gravity="center_vertical"
|
|
android:drawablePadding="@dimen/dp_10"
|
|
android:paddingStart="@dimen/dp_20"
|
|
android:drawableLeft="@mipmap/tab_tianjia"
|
|
android:text="添加好友"
|
|
android:textColor="#ff333333"
|
|
android:textSize="16sp"
|
|
android:id="@+id/tianjia_tv"
|
|
/>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:gravity="center_vertical"
|
|
android:drawablePadding="@dimen/dp_10"
|
|
android:paddingStart="@dimen/dp_20"
|
|
android:drawableLeft="@mipmap/tab_chuangjian"
|
|
android:text="创建群聊"
|
|
android:textColor="#ff333333"
|
|
android:textSize="16sp"
|
|
android:id="@+id/chuangjian_tv"
|
|
/>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:gravity="center_vertical"
|
|
android:drawablePadding="@dimen/dp_10"
|
|
android:paddingStart="@dimen/dp_20"
|
|
android:drawableLeft="@mipmap/tab_tongxunlu"
|
|
android:text="通讯录"
|
|
android:textColor="#ff333333"
|
|
android:textSize="16sp"
|
|
android:id="@+id/tongxunlu_tv"
|
|
/>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
</RelativeLayout>
|
|
</RelativeLayout>
|