第一次提交
This commit is contained in:
@@ -1,156 +1,96 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<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">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
<LinearLayout
|
||||
android:id="@+id/top_lyy"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="148dp"
|
||||
android:background="@mipmap/chat_bg_index"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/card_view"
|
||||
<com.hbl.yuliao.widget.StatusLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="146dp"
|
||||
android:background="@mipmap/chat_bg_index"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<com.hbl.lewan.widget.StatusLayout
|
||||
android:id="@+id/sss"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_chatfm_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
android:layout_marginTop="@dimen/dp_15"
|
||||
android:text="@string/chat_txt"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/sp_20"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/sss" />
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_10"
|
||||
android:layout_marginTop="@dimen/dp_8"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/sss">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_indexfm_notifytop"
|
||||
android:layout_width="@dimen/dp_40"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/index_tongzhi_img"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/sp_14" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/view_chatfm_notifypoint"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:background="@drawable/point_chat_ff4e54"
|
||||
android:gravity="center"
|
||||
android:minWidth="@dimen/dp_16"
|
||||
android:paddingLeft="@dimen/dp_5"
|
||||
android:paddingRight="@dimen/dp_5"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp"
|
||||
android:visibility="gone" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_chatfm_setting"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/dp_30"
|
||||
android:src="@mipmap/ic_chat_list"
|
||||
app:layout_constraintRight_toLeftOf="@+id/iv_chatfm_add"
|
||||
app:layout_constraintTop_toTopOf="@+id/iv_chatfm_add" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_chatfm_add"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/dp_30"
|
||||
android:src="@mipmap/ic_chat_add"
|
||||
app:layout_constraintRight_toLeftOf="@+id/iv_chatfm_friend"
|
||||
app:layout_constraintTop_toTopOf="@+id/iv_chatfm_contact" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_chatfm_friend"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/dp_30"
|
||||
android:src="@mipmap/ic_chat_friend"
|
||||
app:layout_constraintRight_toLeftOf="@+id/iv_chatfm_contact"
|
||||
app:layout_constraintTop_toTopOf="@+id/iv_chatfm_contact" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_chatfm_contact"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_18"
|
||||
android:layout_marginEnd="@dimen/dp_15"
|
||||
android:src="@mipmap/ic_chat_contact"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/sss" />
|
||||
|
||||
<View
|
||||
android:id="@+id/view_settingclick"
|
||||
android:layout_width="@dimen/dp_50"
|
||||
android:layout_height="@dimen/dp_40"
|
||||
app:layout_constraintRight_toLeftOf="@+id/view_addclick"
|
||||
app:layout_constraintTop_toBottomOf="@id/sss" />
|
||||
|
||||
|
||||
<View
|
||||
android:id="@+id/view_addclick"
|
||||
android:layout_width="@dimen/dp_50"
|
||||
android:layout_height="@dimen/dp_40"
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
app:layout_constraintLeft_toRightOf="@+id/iv_chatfm_setting"
|
||||
app:layout_constraintTop_toBottomOf="@id/sss" />
|
||||
|
||||
|
||||
<View
|
||||
android:id="@+id/view_friendgclick"
|
||||
android:layout_width="@dimen/dp_50"
|
||||
android:layout_height="@dimen/dp_40"
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
app:layout_constraintLeft_toRightOf="@+id/iv_chatfm_add"
|
||||
app:layout_constraintTop_toBottomOf="@id/sss" />
|
||||
|
||||
<View
|
||||
android:id="@+id/view_contactclick"
|
||||
android:layout_width="@dimen/dp_0"
|
||||
android:layout_height="@dimen/dp_40"
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
app:layout_constraintLeft_toRightOf="@+id/iv_chatfm_friend"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/sss" />
|
||||
|
||||
android:layout_height="wrap_content" />
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="@dimen/dp_88"
|
||||
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"
|
||||
@@ -165,9 +105,10 @@
|
||||
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>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
@@ -378,10 +319,10 @@
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0.5dp"
|
||||
android:background="#EDE3E3" />
|
||||
<!-- <View-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="0.5dp"-->
|
||||
<!-- android:background="#EDE3E3" />-->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/errorTv"
|
||||
@@ -397,14 +338,93 @@
|
||||
android:textColor="@color/color_50_000000"
|
||||
android:textSize="14dp"
|
||||
android:visibility="gone"
|
||||
android:layout_below="@id/top_lyy"
|
||||
app:drawableStartCompat="@drawable/ic_error"
|
||||
app:layout_constraintTop_toBottomOf="@+id/layout_chatfm_all" />
|
||||
/>
|
||||
|
||||
|
||||
<androidx.viewpager2.widget.ViewPager2
|
||||
android:id="@+id/viewpager_fm_chat"
|
||||
android:layout_width="match_parent"
|
||||
android:overScrollMode="never"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/errorTv" />
|
||||
</LinearLayout>
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user