402 lines
19 KiB
XML
402 lines
19 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout 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="@android:color/white">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/layout_indexfm_topright"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?actionBarSize"
|
|
android:layout_marginLeft="@dimen/dp_15"
|
|
android:layout_marginRight="@dimen/dp_15"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<com.netease.yunxin.kit.common.ui.widgets.ContactAvatarView
|
|
android:id="@+id/av_indexfra_head"
|
|
android:layout_width="37dp"
|
|
android:layout_height="@dimen/dp_32"
|
|
android:layout_marginRight="@dimen/dp_10"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/layout_indexfm_topright" />
|
|
<include
|
|
android:id="@+id/layout_indexfm_search"
|
|
layout="@layout/layout_common_search"
|
|
android:layout_width="match_parent"
|
|
android:layout_weight="1"
|
|
android:layout_height="@dimen/dp_32"
|
|
android:layout_marginRight="@dimen/dp_10"
|
|
app:layout_constraintLeft_toLeftOf="@+id/tv_indexfra_nick"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/av_indexfra_head" />
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/iv_indexfm_notifytop"
|
|
android:layout_width="@dimen/dp_20"
|
|
android:layout_height="match_parent"
|
|
android:src="@mipmap/ic_index_notify"
|
|
app:layout_constraintRight_toLeftOf="@+id/iv_indexfm_addfriendtop"
|
|
app:layout_constraintTop_toTopOf="@+id/iv_indexfm_settingtop" />
|
|
<View
|
|
android:id="@+id/view_chatfm_frinedspoint"
|
|
android:layout_width="@dimen/dp_8"
|
|
android:layout_height="@dimen/dp_8"
|
|
android:layout_marginBottom="@dimen/dp_15"
|
|
android:layout_marginTop="@dimen/dp_6"
|
|
android:layout_marginLeft="-8dp"
|
|
android:visibility="gone"
|
|
android:background="@drawable/point_chat_ff4e54"
|
|
/>
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/iv_indexfm_addfriendtop"
|
|
android:layout_width="@dimen/dp_20"
|
|
android:layout_marginLeft="@dimen/dp_25"
|
|
android:layout_height="match_parent"
|
|
android:visibility="visible"
|
|
android:src="@mipmap/ic_index_addfriends"
|
|
app:layout_constraintRight_toLeftOf="@+id/iv_indexfm_settingtop"
|
|
app:layout_constraintTop_toTopOf="@+id/iv_indexfm_settingtop" />
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/iv_indexfm_settingtop"
|
|
android:layout_width="@dimen/dp_20"
|
|
android:visibility="gone"
|
|
android:layout_height="match_parent"
|
|
android:src="@mipmap/ic_index_setting"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/layout_indexfm_topright1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/dp_15"
|
|
android:layout_marginRight="@dimen/dp_15"
|
|
android:layout_marginTop="@dimen/dimen_20_dp"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical"
|
|
app:layout_constraintLeft_toLeftOf="@+id/layout_indexfm_topright"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/layout_indexfm_topright">
|
|
<TextView
|
|
android:id="@+id/saoyisao_tv"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:text="@string/saoyisao_txt"
|
|
android:drawablePadding="@dimen/dp_10"
|
|
android:drawableTop="@mipmap/index_saoyisao_img"
|
|
android:textSize="@dimen/sp_14"
|
|
android:textColor="@color/color_333333"/>
|
|
<TextView
|
|
android:id="@+id/zhuanzhang_tv"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:text="@string/zhuanzhang_title_txt"
|
|
android:drawablePadding="@dimen/dp_10"
|
|
android:drawableTop="@mipmap/index_zhuanzhang_img"
|
|
android:textSize="@dimen/sp_14"
|
|
android:textColor="@color/color_333333"/>
|
|
<TextView
|
|
android:id="@+id/fukuan_tv"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:text="@string/fukuanma_txt"
|
|
android:drawablePadding="@dimen/dp_10"
|
|
android:drawableTop="@mipmap/index_fukuanma_img"
|
|
android:textSize="@dimen/sp_14"
|
|
android:textColor="@color/color_333333"/>
|
|
<TextView
|
|
android:id="@+id/shoukuan_tv"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:text="@string/shoukuanma_txt"
|
|
android:drawablePadding="@dimen/dp_10"
|
|
android:drawableTop="@mipmap/index_shoukuanma_img"
|
|
android:textSize="@dimen/sp_14"
|
|
android:textColor="@color/color_333333"/>
|
|
</LinearLayout>
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:id="@+id/line1"
|
|
android:layout_marginTop="@dimen/dp_20"
|
|
app:layout_constraintTop_toBottomOf="@+id/layout_indexfm_topright1"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
android:background="#EDEDED"/>
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:layout_marginLeft="@dimen/dp_15"
|
|
android:layout_marginRight="@dimen/dp_15"
|
|
android:scrollbars="none"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="@+id/line1"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/line1">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_indexfm_aichat"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_20"
|
|
android:visibility="gone"
|
|
android:text="@string/aichat_txt"
|
|
android:textColor="@color/color_333333"
|
|
android:textSize="@dimen/sp_14"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/layout_indexfm_aichat"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:visibility="gone"
|
|
android:layout_marginTop="@dimen/dp_20"
|
|
android:layout_marginBottom="@dimen/dp_10"
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_indexfm_aichat">
|
|
|
|
<com.netease.yunxin.kit.common.ui.widgets.ContactAvatarView
|
|
android:id="@+id/iv_indexfm_aihead"
|
|
android:layout_width="@dimen/dp_45"
|
|
android:layout_height="@dimen/dp_45"
|
|
app:avatarCorner="@dimen/dp_45" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dp_15"
|
|
android:layout_toEndOf="@+id/iv_indexfm_aihead"
|
|
android:text="@string/ainame_txt"
|
|
android:textColor="@color/color_333333"
|
|
android:textSize="@dimen/sp_16" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignBottom="@+id/iv_indexfm_aihead"
|
|
android:layout_marginStart="@dimen/dp_15"
|
|
android:layout_toEndOf="@+id/iv_indexfm_aihead"
|
|
android:text="@string/aihint_txt"
|
|
android:textColor="@color/color_7f7b81"
|
|
android:textSize="@dimen/sp_14" />
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
android:id="@+id/tebieguanzhu_ly"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/layout_indexfm_aichat"
|
|
android:orientation="vertical">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_20"
|
|
|
|
android:orientation="horizontal">
|
|
<TextView
|
|
android:id="@+id/tv_indexfm_tbgztitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/tebiezhuanzhu_txt"
|
|
android:textColor="@color/color_333333"
|
|
android:textSize="@dimen/sp_14"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/layout_indexfm_aichat" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_indexfm_tbgzpull"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:drawablePadding="@dimen/dp_3"
|
|
android:paddingStart="@dimen/dp_15"
|
|
android:paddingEnd="@dimen/dp_15"
|
|
android:textColor="@color/color_333333"
|
|
android:textSize="@dimen/sp_14"
|
|
app:drawableEndCompat="@mipmap/ic_indexfm_up"
|
|
app:layout_constraintBottom_toBottomOf="@+id/tv_indexfm_friendstitle"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toTopOf="@+id/tv_indexfm_friendstitle" />
|
|
</LinearLayout>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/contacttbgz"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_indexfm_tbgztitle"
|
|
app:showIndexBar="false"
|
|
app:showSelector="false"
|
|
app:showTopPin="false" />
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_indexfm_friendstitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_20"
|
|
android:text="@string/haoyou_txt"
|
|
android:textColor="@color/color_333333"
|
|
android:textSize="@dimen/sp_14"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/tebieguanzhu_ly" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_indexfm_friendspull"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:drawablePadding="@dimen/dp_3"
|
|
android:paddingStart="@dimen/dp_15"
|
|
android:paddingEnd="@dimen/dp_15"
|
|
android:textColor="@color/color_333333"
|
|
android:textSize="@dimen/sp_14"
|
|
app:drawableEndCompat="@mipmap/ic_indexfm_up"
|
|
app:layout_constraintBottom_toBottomOf="@+id/tv_indexfm_friendstitle"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toTopOf="@+id/tv_indexfm_friendstitle" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/layout_indexfm_addfriends"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="@dimen/dp_20"
|
|
android:layout_marginBottom="@dimen/dp_10"
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_indexfm_friendstitle">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/iv_indexfm_addfriends"
|
|
android:layout_width="@dimen/dp_45"
|
|
android:layout_height="@dimen/dp_45"
|
|
app:srcCompat="@mipmap/ic_indexfm_addfriend" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dp_15"
|
|
android:layout_toEndOf="@+id/iv_indexfm_addfriends"
|
|
android:text="@string/add_friend"
|
|
android:textColor="@color/color_333333"
|
|
android:textSize="@dimen/sp_16" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignBottom="@+id/iv_indexfm_addfriends"
|
|
android:layout_marginStart="@dimen/dp_15"
|
|
android:layout_toEndOf="@+id/iv_indexfm_addfriends"
|
|
android:text="@string/addfrineds_hint_text"
|
|
android:textColor="@color/color_7f7b81"
|
|
android:textSize="@dimen/sp_14" />
|
|
</RelativeLayout>
|
|
|
|
<com.netease.yunxin.kit.contactkit.ui.view.ContactListView
|
|
android:id="@+id/contactfriends"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
app:layout_constraintTop_toBottomOf="@+id/layout_indexfm_addfriends"
|
|
app:showIndexBar="false"
|
|
app:showSelector="false"
|
|
app:showTopPin="false" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_indexfm_grouptitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_20"
|
|
android:text="@string/group_text"
|
|
android:textColor="@color/color_333333"
|
|
android:textSize="@dimen/sp_14"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/contactfriends" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_indexfm_grouppull"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:drawablePadding="@dimen/dp_3"
|
|
android:paddingStart="@dimen/dp_15"
|
|
android:paddingEnd="@dimen/dp_15"
|
|
android:textColor="@color/color_333333"
|
|
android:textSize="@dimen/sp_14"
|
|
app:drawableEndCompat="@mipmap/ic_indexfm_up"
|
|
app:layout_constraintBottom_toBottomOf="@+id/tv_indexfm_grouptitle"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toTopOf="@+id/tv_indexfm_grouptitle" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/layout_indexfm_addgroup"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_20"
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_indexfm_grouptitle">
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/iv_indexfm_addgroup"
|
|
android:layout_width="@dimen/dp_45"
|
|
android:layout_height="@dimen/dp_45"
|
|
app:srcCompat="@mipmap/ic_indexfm_addgroup" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dp_15"
|
|
android:layout_toEndOf="@+id/iv_indexfm_addgroup"
|
|
android:text="@string/creategroup_text"
|
|
android:textColor="@color/color_333333"
|
|
android:textSize="@dimen/sp_16" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignBottom="@+id/iv_indexfm_addgroup"
|
|
android:layout_marginStart="@dimen/dp_15"
|
|
android:layout_toEndOf="@+id/iv_indexfm_addgroup"
|
|
android:text="@string/creategroup_hint_text"
|
|
android:textColor="@color/color_7f7b81"
|
|
android:textSize="@dimen/sp_14" />
|
|
</RelativeLayout>
|
|
|
|
<com.netease.yunxin.kit.contactkit.ui.view.ContactListView
|
|
android:id="@+id/contactgroups"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
android:layout_marginBottom="@dimen/dp_20"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/layout_indexfm_addgroup"
|
|
app:showIndexBar="false"
|
|
app:showSelector="false"
|
|
app:showTopPin="false" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |