taomenggo init
This commit is contained in:
15
chatkit-ui/src/main/res-normal/drawable/switch_thumb_off.xml
Normal file
15
chatkit-ui/src/main/res-normal/drawable/switch_thumb_off.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?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. -->
|
||||
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<size
|
||||
android:width="@dimen/dimen_20_dp"
|
||||
android:height="@dimen/dimen_20_dp" />
|
||||
|
||||
<solid android:color="@color/color_white" />
|
||||
<stroke android:width="1dp" android:color="@color/color_dbdde4"/>
|
||||
|
||||
</shape>
|
||||
15
chatkit-ui/src/main/res-normal/drawable/switch_thumb_on.xml
Normal file
15
chatkit-ui/src/main/res-normal/drawable/switch_thumb_on.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?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. -->
|
||||
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<size
|
||||
android:width="@dimen/dimen_20_dp"
|
||||
android:height="@dimen/dimen_20_dp" />
|
||||
|
||||
<solid android:color="@color/color_white" />
|
||||
<stroke android:width="1dp" android:color="@color/color_337eff"/>
|
||||
|
||||
</shape>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?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. -->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:drawable="@drawable/fun_bg_switch_thumb_on" android:state_checked="true" />
|
||||
|
||||
<item android:drawable="@drawable/fun_bg_switch_thumb_off" android:state_checked="false" />
|
||||
|
||||
</selector>
|
||||
17
chatkit-ui/src/main/res-normal/drawable/switch_track_off.xml
Normal file
17
chatkit-ui/src/main/res-normal/drawable/switch_track_off.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?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. -->
|
||||
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<corners android:radius="@dimen/dimen_10_dp"/>
|
||||
|
||||
<size
|
||||
android:width="@dimen/dimen_60_dp"
|
||||
android:height="@dimen/dimen_20_dp" />
|
||||
|
||||
<solid android:color="@color/color_dbdde4" />
|
||||
|
||||
</shape>
|
||||
17
chatkit-ui/src/main/res-normal/drawable/switch_track_on.xml
Normal file
17
chatkit-ui/src/main/res-normal/drawable/switch_track_on.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?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. -->
|
||||
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<corners android:radius="@dimen/dimen_10_dp" />
|
||||
|
||||
<size
|
||||
android:width="@dimen/dimen_60_dp"
|
||||
android:height="@dimen/dimen_20_dp" />
|
||||
|
||||
<solid android:color="@color/color_337eff" />
|
||||
|
||||
</shape>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?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. -->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:drawable="@drawable/fun_bg_switch_track_on" android:state_checked="true" />
|
||||
|
||||
<item android:drawable="@drawable/fun_bg_switch_track_off" android:state_checked="false" />
|
||||
|
||||
</selector>
|
||||
@@ -0,0 +1,32 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_42_dp"
|
||||
android:paddingVertical="@dimen/dimen_9_dp"
|
||||
android:paddingHorizontal="@dimen/dimen_16_dp"
|
||||
android:background="@drawable/bg_corner_white_stroke"
|
||||
tools:ignore="MissingDefaultResource">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/animation"
|
||||
android:layout_width="@dimen/dimen_28_dp"
|
||||
android:layout_height="@dimen/dimen_28_dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvTime"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_14"
|
||||
android:maxLines="1"
|
||||
android:layout_centerVertical="true" />
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -0,0 +1,91 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<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:id="@+id/file_baseRoot"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_shape_corner"
|
||||
tools:ignore="MissingDefaultResource">
|
||||
|
||||
<com.netease.yunxin.kit.common.ui.widgets.ContactAvatarView
|
||||
android:id="@+id/message_avatar"
|
||||
android:layout_width="@dimen/dimen_32_dp"
|
||||
android:layout_height="@dimen/dimen_32_dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:layout_marginStart="@dimen/dimen_16_dp"
|
||||
android:layout_marginTop="@dimen/dimen_16_dp"
|
||||
tools:ignore="MissingConstraints" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/otherUsername"
|
||||
android:layout_width="@dimen/chat_name_max_length"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxLines="1"
|
||||
android:ellipsize="end"
|
||||
app:layout_constraintTop_toTopOf="@id/message_avatar"
|
||||
app:layout_constraintLeft_toRightOf="@id/message_avatar"
|
||||
android:layout_marginStart="@dimen/dimen_6_dp"
|
||||
android:textSize="@dimen/text_size_14"
|
||||
android:textColor="@color/color_333333" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvTime"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingBottom="@dimen/dimen_4_dp"
|
||||
android:textColor="@color/color_999999"
|
||||
android:textSize="@dimen/text_size_12"
|
||||
android:layout_marginStart="@dimen/dimen_6_dp"
|
||||
app:layout_constraintLeft_toRightOf="@id/message_avatar"
|
||||
app:layout_constraintTop_toBottomOf="@id/otherUsername"/>
|
||||
|
||||
<ImageView android:id="@+id/iv_more_action"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/ic_more_point"
|
||||
tools:ignore="MissingConstraints"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:layout_marginEnd="@dimen/dimen_16_dp"
|
||||
android:layout_marginTop="@dimen/dimen_16_dp"/>
|
||||
|
||||
<View android:id="@+id/divider_line"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_1_dp"
|
||||
android:background="@color/color_e4e9f2"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:layout_marginStart="@dimen/dimen_16_dp"
|
||||
android:layout_marginEnd="@dimen/dimen_16_dp"
|
||||
app:layout_constraintTop_toBottomOf="@id/message_avatar"
|
||||
android:layout_marginTop="@dimen/dimen_12_dp"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/messageBody"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintStart_toStartOf="@id/message_avatar"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/divider_line"
|
||||
android:layout_marginTop="@dimen/dimen_12_dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.netease.yunxin.kit.common.ui.widgets.LongClickableFrameLayout
|
||||
android:id="@+id/messageContainer"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
</com.netease.yunxin.kit.common.ui.widgets.LongClickableFrameLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -0,0 +1,80 @@
|
||||
<?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">
|
||||
<FrameLayout
|
||||
android:layout_width="254dp"
|
||||
android:layout_height="@dimen/dimen_56_dp"
|
||||
tools:ignore="MissingConstraints"
|
||||
android:background="@drawable/bg_shape_corner">
|
||||
|
||||
<ImageView android:id="@+id/file_type_iv"
|
||||
android:layout_width="@dimen/dimen_32_dp"
|
||||
android:layout_height="@dimen/dimen_32_dp"
|
||||
android:src="@drawable/ic_unknown_file"
|
||||
android:scaleType="fitXY"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="@dimen/dimen_14_dp"/>
|
||||
|
||||
<FrameLayout android:id="@+id/file_progress_fl"
|
||||
android:layout_width="@dimen/dimen_32_dp"
|
||||
android:layout_height="@dimen/dimen_32_dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="@dimen/dimen_14_dp"
|
||||
android:visibility="gone"
|
||||
android:background="@drawable/bg_file_mask">
|
||||
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/progress_bar"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
app:indicatorColor="@color/color_white"
|
||||
app:trackColor="@color/color_4d000000"
|
||||
app:trackCornerRadius="@dimen/dimen_1_dp"
|
||||
app:trackThickness="@dimen/dimen_2_dp"
|
||||
app:indicatorSize="@dimen/dimen_20_dp"
|
||||
android:layout_gravity="center"/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/progress_bar_inside_icon"
|
||||
android:layout_width="@dimen/dimen_6_dp"
|
||||
android:layout_height="@dimen/dimen_9_dp"
|
||||
android:src="@drawable/ic_video_pause_thumb"
|
||||
android:layout_gravity="center"/>
|
||||
</FrameLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/display_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dimen_56_dp"
|
||||
android:layout_marginTop="@dimen/dimen_12_dp"
|
||||
android:layout_marginEnd="@dimen/dimen_6_dp"
|
||||
android:layout_marginBottom="@dimen/dimen_6_dp"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/dimen_14_dp"
|
||||
android:typeface="monospace"
|
||||
android:ellipsize="middle"
|
||||
tools:text="文件"
|
||||
tools:ignore="SpUsage"
|
||||
android:singleLine="true" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/display_size"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dimen_58_dp"
|
||||
android:layout_marginEnd="@dimen/dimen_6_dp"
|
||||
android:layout_marginBottom="@dimen/dimen_12_dp"
|
||||
android:layout_gravity="bottom"
|
||||
android:textColor="@color/color_999999"
|
||||
android:textSize="@dimen/dimen_10_dp"
|
||||
android:typeface="monospace"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="middle"
|
||||
tools:ignore="SpUsage" />
|
||||
</FrameLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -0,0 +1,53 @@
|
||||
<?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. -->
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="234dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/dimen_1_dp"
|
||||
android:background="@drawable/bg_corner_white_stroke">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/location_item_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dimen_16_dp"
|
||||
android:layout_marginTop="@dimen/dimen_12_dp"
|
||||
android:layout_marginRight="@dimen/dimen_16_dp"
|
||||
android:ellipsize="end"
|
||||
android:lines="1"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_16" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/location_item_address"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dimen_16_dp"
|
||||
android:layout_marginRight="@dimen/dimen_16_dp"
|
||||
android:layout_marginBottom="@dimen/dimen_5_dp"
|
||||
android:ellipsize="end"
|
||||
android:lines="1"
|
||||
android:textColor="@color/color_999999"
|
||||
android:textSize="@dimen/text_size_12" />
|
||||
|
||||
<!-- <FrameLayout android:id="@+id/location_item_map_view"-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="88dp" />-->
|
||||
<WebView android:id="@+id/location_item_map_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="88dp"
|
||||
android:scrollbars="none"
|
||||
tools:ignore="WebViewLayout" />
|
||||
</LinearLayout>
|
||||
|
||||
<View android:id="@+id/location_click"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
</FrameLayout>
|
||||
@@ -0,0 +1,72 @@
|
||||
<?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"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingHorizontal="@dimen/dimen_12_dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/rectangle_white_reduce_bg"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_team"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="@dimen/text_size_14"
|
||||
android:textColor="@color/color_333333"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="@string/chat_message_forward_to_team"
|
||||
android:paddingVertical="@dimen/dimen_12_dp" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_1_dp"
|
||||
android:background="@color/color_f5f8fc" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_p2p"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="@dimen/text_size_14"
|
||||
android:textColor="@color/color_333333"
|
||||
android:text="@string/chat_message_forward_to_person"
|
||||
android:gravity="center_horizontal"
|
||||
android:paddingVertical="@dimen/dimen_12_dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_12_dp"
|
||||
android:background="@color/title_transfer" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/rectangle_white_reduce_bg"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_cancel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="@dimen/text_size_14"
|
||||
android:textColor="@color/color_333333"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="@string/cancel"
|
||||
android:paddingVertical="@dimen/dimen_12_dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/messageText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="@dimen/text_size_14"
|
||||
android:layout_marginTop="@dimen/dimen_5_dp"
|
||||
android:layout_marginBottom="@dimen/dimen_5_dp"
|
||||
android:layout_marginLeft="@dimen/dimen_10_dp"
|
||||
android:layout_marginRight="@dimen/dimen_10_dp"
|
||||
android:textColor="@color/color_333333"
|
||||
android:ellipsize="end"
|
||||
tools:text="@tools:sample/lorem" />
|
||||
<ImageView
|
||||
android:id="@+id/messageTextGif"
|
||||
android:visibility="gone"
|
||||
android:padding="@dimen/dimen_10_dp"
|
||||
android:layout_width="@dimen/dimen_140_dp"
|
||||
android:layout_height="@dimen/dimen_140_dp"
|
||||
/>
|
||||
|
||||
|
||||
</FrameLayout>
|
||||
@@ -0,0 +1,38 @@
|
||||
<?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"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.netease.yunxin.kit.common.ui.widgets.BackTitleBar
|
||||
android:id="@+id/title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:titleText="@string/chat_read_status" />
|
||||
|
||||
<com.google.android.material.tabs.TabLayout
|
||||
android:id="@+id/tabLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_40_dp"
|
||||
app:tabSelectedTextColor="@color/color_337eff"
|
||||
app:tabIndicatorColor="@color/color_337eff"
|
||||
app:tabRippleColor="@null"
|
||||
app:tabBackground="@null"
|
||||
app:tabIndicatorHeight="@dimen/dimen_2_dp"
|
||||
app:tabTextColor="@color/color_333333" />
|
||||
|
||||
|
||||
<androidx.viewpager2.widget.ViewPager2
|
||||
android:id="@+id/viewPager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,76 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<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="wrap_content"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingBottom="10dp">
|
||||
|
||||
<com.netease.yunxin.kit.common.ui.widgets.ContactAvatarView
|
||||
android:id="@+id/cav_icon"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="42dp"
|
||||
android:layout_marginStart="20dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
app:layout_constraintStart_toEndOf="@id/cav_icon"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constrainedWidth="true"
|
||||
android:gravity="center_vertical"
|
||||
tools:ignore="MissingConstraints">
|
||||
<TextView
|
||||
android:id="@+id/tv_nick_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxLines="1"
|
||||
android:maxWidth="@dimen/dimen_188_dp"
|
||||
android:gravity="center_vertical|start"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="16dp"
|
||||
tools:ignore="SpUsage" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_message"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:paddingTop="4dp"
|
||||
android:textColor="@color/color_666666"
|
||||
android:textSize="12dp"
|
||||
tools:ignore="SpUsage"
|
||||
android:maxLines="1"
|
||||
android:ellipsize="end"
|
||||
android:visibility="visible"/>
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:paddingTop="4dp"
|
||||
android:textColor="@color/color_666666"
|
||||
android:textSize="12dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/cav_icon"
|
||||
app:layout_goneMarginEnd="@dimen/dimen_20_dp"
|
||||
tools:ignore="MissingConstraints,SpUsage"/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -0,0 +1,98 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<com.netease.yunxin.kit.common.ui.widgets.BackTitleBar
|
||||
android:id="@+id/searchTitleBar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_46_dp"
|
||||
app:titleText="@string/message_search_title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="MissingConstraints" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/searchEt"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_marginStart="20dp"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:layout_marginTop="@dimen/dimen_16_dp"
|
||||
android:background="@drawable/bg_message_search_et"
|
||||
android:drawableStart="@drawable/ic_search"
|
||||
android:drawablePadding="5dp"
|
||||
android:hint="@string/message_search_hint"
|
||||
android:maxLines="1"
|
||||
android:paddingStart="15dp"
|
||||
android:paddingEnd="15dp"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textColorHint="@color/color_666666"
|
||||
android:textSize="14dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/searchTitleBar"
|
||||
tools:ignore="SpUsage"
|
||||
android:inputType="text"
|
||||
android:autofillHints="" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/clearIv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:src="@drawable/ic_clear"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@id/searchEt"
|
||||
app:layout_constraintEnd_toEndOf="@id/searchEt"
|
||||
app:layout_constraintTop_toTopOf="@id/searchEt"
|
||||
android:contentDescription="@string/cancel" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/searchRv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:scrollbars="vertical"
|
||||
android:layout_marginTop="10dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/searchEt" />
|
||||
|
||||
<LinearLayout android:id="@+id/emptyLayout"
|
||||
android:layout_width="@dimen/dimen_100_dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dimen_55_dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/searchEt"
|
||||
android:orientation="vertical"
|
||||
tools:ignore="MissingConstraints,UseCompoundDrawables"
|
||||
android:visibility="gone">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/emptyIv"
|
||||
android:layout_width="@dimen/dimen_74_dp"
|
||||
android:layout_height="@dimen/dimen_74_dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:src="@drawable/ic_list_empty"
|
||||
android:contentDescription="@string/chat_location_empty" />
|
||||
|
||||
<TextView android:id="@+id/emptyTv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/message_search_empty"
|
||||
android:textColor="@color/color_666666"
|
||||
android:layout_marginTop="@dimen/dimen_6_dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:textSize="@dimen/text_size_14"/>
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -0,0 +1,79 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<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="wrap_content">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/thumbnail"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="1px"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/progress_bar"
|
||||
android:layout_width="@dimen/dimen_42_dp"
|
||||
android:layout_height="@dimen/dimen_42_dp"
|
||||
android:visibility="gone"
|
||||
app:indicatorColor="@color/color_white"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:trackColor="@color/color_4d000000"
|
||||
app:trackCornerRadius="@dimen/dimen_4_dp" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/progress_bar_inside_icon"
|
||||
android:layout_width="@dimen/dimen_13_dp"
|
||||
android:layout_height="@dimen/dimen_18_dp"
|
||||
android:src="@drawable/ic_video_pause_thumb"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/play_icon"
|
||||
android:layout_width="@dimen/dimen_60_dp"
|
||||
android:layout_height="@dimen/dimen_60_dp"
|
||||
android:src="@drawable/ic_video_player"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/duration"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/dimen_6_dp"
|
||||
android:layout_marginBottom="@dimen/dimen_6_dp"
|
||||
android:background="@drawable/bg_video_duration"
|
||||
android:paddingLeft="@dimen/dimen_2_dp"
|
||||
android:paddingTop="@dimen/dimen_1_dp"
|
||||
android:paddingRight="@dimen/dimen_2_dp"
|
||||
android:paddingBottom="@dimen/dimen_1_dp"
|
||||
android:textColor="@color/color_white"
|
||||
android:textSize="@dimen/dimen_10_dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
tools:text="00:00"
|
||||
tools:visibility="visible"
|
||||
tools:ignore="SpUsage" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -0,0 +1,46 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/llyEmpty"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:gravity="center_horizontal"
|
||||
android:visibility="gone"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_marginTop="90dp"
|
||||
android:layout_width="122dp"
|
||||
android:layout_height="91dp"
|
||||
android:src="@drawable/ic_message_read_empty" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvAllState"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/color_b3b7bc"
|
||||
android:layout_marginTop="@dimen/dimen_8_dp"
|
||||
android:textSize="@dimen/text_size_14" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?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"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.netease.yunxin.kit.chatkit.ui.normal.view.ChatView
|
||||
android:id="@+id/chatView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/container"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingVertical="@dimen/dimen_9_dp"
|
||||
android:paddingHorizontal="@dimen/dimen_16_dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/animation"
|
||||
android:layout_width="@dimen/dimen_28_dp"
|
||||
android:layout_height="@dimen/dimen_28_dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvTime"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_14"
|
||||
android:maxLines="1"
|
||||
android:layout_centerVertical="true" />
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -0,0 +1,155 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<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="wrap_content"
|
||||
android:id="@+id/chat_message_input_root"
|
||||
android:background="@color/color_eef1f4">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/llyReply"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
android:background="@color/color_eff1f4"
|
||||
android:visibility="gone"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingVertical="@dimen/dimen_11_dp"
|
||||
android:paddingHorizontal="@dimen/dimen_8_dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_reply_close"
|
||||
android:layout_width="@dimen/dimen_14_dp"
|
||||
android:layout_height="@dimen/dimen_14_dp"
|
||||
android:src="@drawable/ic_grey_close" />
|
||||
|
||||
<View
|
||||
android:layout_width="@dimen/dimen_1_dp"
|
||||
android:layout_height="@dimen/dimen_14_dp"
|
||||
android:layout_marginHorizontal="@dimen/dimen_6_dp"
|
||||
android:background="@color/color_d8eae4" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvReplyContent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxLines="1"
|
||||
android:ellipsize="end"
|
||||
android:textColor="@color/color_929299"
|
||||
android:textSize="@dimen/text_size_12" />
|
||||
|
||||
</LinearLayout>
|
||||
<LinearLayout android:id="@+id/chat_message_input_bar_layout"
|
||||
app:layout_constraintTop_toBottomOf="@id/llyReply"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<FrameLayout android:id="@+id/chat_message_input_left_container"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"/>
|
||||
<com.netease.yunxin.kit.common.ui.widgets.RoundFrameLayout
|
||||
android:id="@+id/chat_message_input_layout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/color_white"
|
||||
android:layout_height="@dimen/dimen_40_dp"
|
||||
android:layout_marginStart="@dimen/dimen_7_dp"
|
||||
android:layout_marginTop="@dimen/dimen_6_dp"
|
||||
android:layout_marginEnd="@dimen/dimen_7_dp"
|
||||
app:corner_radius="@dimen/dimen_8_dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/llyReply">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/chat_message_input_et"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@null"
|
||||
android:maxLength="2000"
|
||||
android:imeOptions="actionSend"
|
||||
android:paddingStart="@dimen/dimen_12_dp"
|
||||
android:paddingEnd="@dimen/dimen_12_dp"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="end"
|
||||
android:textColorHint="@color/color_b3b7bc"
|
||||
android:textCursorDrawable="@null"
|
||||
android:textSize="@dimen/text_size_16"
|
||||
android:inputType="text"
|
||||
tools:ignore="LabelFor" />
|
||||
|
||||
|
||||
</com.netease.yunxin.kit.common.ui.widgets.RoundFrameLayout>
|
||||
<FrameLayout android:id="@+id/chat_message_input_right_container"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"/>
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/chat_message_action_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_56_dp"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/chat_message_input_bar_layout" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/chat_message_voice_in_tip"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:paddingTop="@dimen/dimen_24_dp"
|
||||
android:text="@string/chat_message_voice_in"
|
||||
android:textColor="@color/color_999999"
|
||||
android:textSize="@dimen/text_size_12"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/chat_message_input_bar_layout" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/chat_message_input_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/chat_message_action_container">
|
||||
|
||||
<com.netease.yunxin.kit.chatkit.ui.normal.view.RecordView
|
||||
android:id="@+id/chat_message_record_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone" />
|
||||
|
||||
<com.netease.yunxin.kit.chatkit.ui.view.emoji.EmojiPickerView
|
||||
android:id="@+id/chat_message_emoji_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@android:color/white"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<androidx.viewpager2.widget.ViewPager2
|
||||
android:id="@+id/chat_message_actions_panel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_188_dp"
|
||||
android:visibility="gone"/>
|
||||
</FrameLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.Group
|
||||
android:id="@+id/chat_message_edit_input"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:constraint_referenced_ids="chat_message_input_bar_layout,chat_message_action_container" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -0,0 +1,46 @@
|
||||
<?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="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:paddingStart="@dimen/dimen_12_dp"
|
||||
android:paddingEnd="@dimen/dimen_12_dp"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<ImageView android:id="@+id/chat_message_call_icon_in"
|
||||
android:layout_width="@dimen/dimen_24_dp"
|
||||
android:layout_height="@dimen/dimen_24_dp"
|
||||
android:src="@drawable/ic_message_call_audio"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:visibility="visible"
|
||||
android:layout_marginEnd="@dimen/dimen_8_dp"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/chat_message_call_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="@dimen/text_size_16"
|
||||
android:paddingVertical="@dimen/dimen_12_dp"
|
||||
android:textColor="@color/color_333333"
|
||||
android:maxLines="1"
|
||||
android:ellipsize="end"
|
||||
|
||||
tools:text="@string/chat_message_call_canceled" />
|
||||
|
||||
<ImageView android:id="@+id/chat_message_call_icon_out"
|
||||
android:layout_width="@dimen/dimen_24_dp"
|
||||
android:layout_height="@dimen/dimen_24_dp"
|
||||
android:visibility="gone"
|
||||
android:src="@drawable/ic_message_call_audio"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="@dimen/dimen_8_dp"
|
||||
app:tint="@color/color_white" />
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,93 @@
|
||||
<?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:background="@drawable/bg_shape_corner"
|
||||
android:layout_height="@dimen/dimen_56_dp">
|
||||
|
||||
<ImageView android:id="@+id/file_type_iv"
|
||||
android:layout_width="@dimen/dimen_32_dp"
|
||||
android:layout_height="@dimen/dimen_32_dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
android:src="@drawable/ic_unknown_file"
|
||||
android:scaleType="fitXY"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="@dimen/dimen_14_dp"/>
|
||||
|
||||
<FrameLayout android:id="@+id/file_progress_fl"
|
||||
android:layout_width="@dimen/dimen_32_dp"
|
||||
android:layout_height="@dimen/dimen_32_dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
android:layout_marginStart="@dimen/dimen_14_dp"
|
||||
android:visibility="gone"
|
||||
android:background="@drawable/bg_file_mask">
|
||||
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/progress_bar"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
app:indicatorColor="@color/color_white"
|
||||
app:trackColor="@color/color_4d000000"
|
||||
app:trackCornerRadius="@dimen/dimen_1_dp"
|
||||
app:trackThickness="@dimen/dimen_2_dp"
|
||||
app:indicatorSize="@dimen/dimen_20_dp"
|
||||
android:layout_gravity="center"/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/progress_bar_inside_icon"
|
||||
android:layout_width="@dimen/dimen_6_dp"
|
||||
android:layout_height="@dimen/dimen_9_dp"
|
||||
android:src="@drawable/ic_video_pause_thumb"
|
||||
android:layout_gravity="center"/>
|
||||
</FrameLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/display_name"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dimen_56_dp"
|
||||
android:layout_marginTop="@dimen/dimen_12_dp"
|
||||
android:layout_marginEnd="@dimen/dimen_6_dp"
|
||||
android:layout_marginBottom="@dimen/dimen_6_dp"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/dimen_14_dp"
|
||||
android:typeface="monospace"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:ellipsize="middle"
|
||||
tools:text="文件"
|
||||
tools:ignore="SpUsage"
|
||||
android:singleLine="true" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/display_size"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dimen_58_dp"
|
||||
android:layout_marginEnd="@dimen/dimen_6_dp"
|
||||
android:layout_marginBottom="@dimen/dimen_12_dp"
|
||||
android:layout_gravity="bottom"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:textColor="@color/color_999999"
|
||||
android:textSize="@dimen/dimen_10_dp"
|
||||
android:typeface="monospace"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="middle"
|
||||
tools:ignore="SpUsage" />
|
||||
|
||||
<androidx.constraintlayout.widget.Placeholder
|
||||
android:id="@+id/place_holder"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
tools:ignore="MissingConstraints" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -0,0 +1,48 @@
|
||||
<?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. -->
|
||||
<com.netease.yunxin.kit.common.ui.widgets.RoundFrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="234dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/dimen_1_dp"
|
||||
android:background="@color/color_white"
|
||||
app:corner_radius="@dimen/dimen_12_dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/location_item_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dimen_16_dp"
|
||||
android:layout_marginTop="@dimen/dimen_12_dp"
|
||||
android:layout_marginRight="@dimen/dimen_16_dp"
|
||||
android:ellipsize="end"
|
||||
android:lines="1"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_16" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/location_item_address"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dimen_16_dp"
|
||||
android:layout_marginRight="@dimen/dimen_16_dp"
|
||||
android:layout_marginBottom="@dimen/dimen_5_dp"
|
||||
android:ellipsize="end"
|
||||
android:lines="1"
|
||||
android:textColor="@color/color_999999"
|
||||
android:textSize="@dimen/text_size_12" />
|
||||
|
||||
<FrameLayout android:id="@+id/location_item_map_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="88dp" />
|
||||
</LinearLayout>
|
||||
<View android:id="@+id/location_click"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
</com.netease.yunxin.kit.common.ui.widgets.RoundFrameLayout>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/tv_reply"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="@dimen/dimen_16_dp"
|
||||
android:layout_marginTop="@dimen/dimen_12_dp"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/color_929299"
|
||||
android:textSize="@dimen/text_size_13" />
|
||||
@@ -0,0 +1,40 @@
|
||||
<?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="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/messageText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="@dimen/text_size_16"
|
||||
android:paddingHorizontal="@dimen/dimen_16_dp"
|
||||
android:paddingVertical="@dimen/dimen_12_dp"
|
||||
android:textColor="@color/color_666666"
|
||||
android:maxLines="1"
|
||||
android:text="@string/chat_message_revoked"
|
||||
tools:text="@tools:sample/lorem" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_action"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="@dimen/text_size_16"
|
||||
android:paddingEnd="@dimen/dimen_16_dp"
|
||||
android:paddingVertical="@dimen/dimen_12_dp"
|
||||
android:text="@string/chat_message_re_edit"
|
||||
android:textColor="@color/color_007aff"
|
||||
android:visibility="gone"
|
||||
android:drawablePadding="@dimen/dimen_5_dp"
|
||||
app:drawableEndCompat="@drawable/ic_right_arrow_blue" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/messageText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="@dimen/text_size_14"
|
||||
android:layout_marginTop="@dimen/dimen_5_dp"
|
||||
android:layout_marginBottom="@dimen/dimen_5_dp"
|
||||
android:layout_marginLeft="@dimen/dimen_10_dp"
|
||||
android:layout_marginRight="@dimen/dimen_10_dp"
|
||||
android:textColor="@color/color_333333"
|
||||
android:ellipsize="end"
|
||||
tools:text="@tools:sample/lorem" />
|
||||
<ImageView
|
||||
android:id="@+id/messageTextGif"
|
||||
android:visibility="gone"
|
||||
android:padding="@dimen/dimen_10_dp"
|
||||
android:layout_width="@dimen/dimen_140_dp"
|
||||
android:layout_height="@dimen/dimen_140_dp"
|
||||
/>
|
||||
|
||||
|
||||
</FrameLayout>
|
||||
@@ -0,0 +1,78 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<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="wrap_content">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/thumbnail"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/progress_bar"
|
||||
android:layout_width="@dimen/dimen_42_dp"
|
||||
android:layout_height="@dimen/dimen_42_dp"
|
||||
android:visibility="gone"
|
||||
app:indicatorColor="@color/color_white"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:trackColor="@color/color_4d000000"
|
||||
app:trackCornerRadius="@dimen/dimen_4_dp" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/progress_bar_inside_icon"
|
||||
android:layout_width="@dimen/dimen_13_dp"
|
||||
android:layout_height="@dimen/dimen_18_dp"
|
||||
android:src="@drawable/ic_video_pause_thumb"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/play_icon"
|
||||
android:layout_width="@dimen/dimen_60_dp"
|
||||
android:layout_height="@dimen/dimen_60_dp"
|
||||
android:src="@drawable/ic_video_player"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/duration"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/dimen_10_dp"
|
||||
android:layout_marginBottom="@dimen/dimen_10_dp"
|
||||
android:background="@drawable/bg_video_duration"
|
||||
android:paddingLeft="@dimen/dimen_2_dp"
|
||||
android:paddingTop="@dimen/dimen_1_dp"
|
||||
android:paddingRight="@dimen/dimen_2_dp"
|
||||
android:paddingBottom="@dimen/dimen_1_dp"
|
||||
android:textColor="@color/color_white"
|
||||
android:textSize="@dimen/dimen_10_dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
tools:text="00:00"
|
||||
tools:visibility="visible"
|
||||
tools:ignore="SpUsage" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/messageTipText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="@dimen/text_size_16"
|
||||
android:paddingHorizontal="@dimen/dimen_16_dp"
|
||||
android:paddingVertical="@dimen/dimen_12_dp"
|
||||
android:textColor="@color/color_333333"
|
||||
tools:text="@tools:sample/lorem" />
|
||||
|
||||
</FrameLayout>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/messageTipText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="@dimen/text_size_16"
|
||||
android:textColor="@color/color_333333"
|
||||
tools:text="@tools:sample/lorem" />
|
||||
|
||||
</FrameLayout>
|
||||
@@ -0,0 +1,156 @@
|
||||
<?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"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:background="@color/color_eef1f4"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.netease.yunxin.kit.common.ui.widgets.BackTitleBar
|
||||
android:id="@+id/titleBarView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="@dimen/dimen_20_dp"
|
||||
android:layout_marginVertical="@dimen/dimen_12_dp"
|
||||
android:paddingVertical="@dimen/dimen_12_dp"
|
||||
android:paddingHorizontal="@dimen/dimen_16_dp"
|
||||
android:background="@drawable/rectangle_white_reduce_bg">
|
||||
|
||||
<com.netease.yunxin.kit.common.ui.widgets.ContactAvatarView
|
||||
android:id="@+id/avatarView"
|
||||
android:layout_width="@dimen/dimen_42_dp"
|
||||
android:layout_height="@dimen/dimen_42_dp"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/nameTv"
|
||||
android:layout_width="@dimen/dimen_42_dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dimen_6_dp"
|
||||
android:maxLines="1"
|
||||
android:ellipsize="end"
|
||||
android:gravity="center_horizontal"
|
||||
app:layout_constraintTop_toBottomOf="@id/avatarView"
|
||||
app:layout_constraintLeft_toLeftOf="@id/avatarView"
|
||||
app:layout_constraintRight_toRightOf="@id/avatarView" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/addIv"
|
||||
android:layout_width="@dimen/dimen_42_dp"
|
||||
android:layout_height="@dimen/dimen_42_dp"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintLeft_toRightOf="@id/avatarView"
|
||||
android:src="@drawable/ic_chat_setting_add_member"
|
||||
android:layout_marginStart="@dimen/dimen_16_dp" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="@dimen/dimen_20_dp"
|
||||
android:background="@drawable/rectangle_white_reduce_bg"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/pinLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_50_dp"
|
||||
android:visibility="visible"
|
||||
android:padding="@dimen/dimen_16_dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/chat_message_signal"
|
||||
android:textColor="@color/color_666666"
|
||||
android:textSize="@dimen/text_size_12"
|
||||
android:layout_centerVertical="true" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:src="@drawable/ic_right_arrow"
|
||||
android:layout_centerVertical="true" />
|
||||
</RelativeLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_1_dp"
|
||||
android:background="@color/color_f5f8fc" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/notifyLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="@dimen/dimen_16_dp"
|
||||
android:paddingEnd="@dimen/dimen_16_dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:text="@string/chat_message_open_message_notice"
|
||||
android:textColor="@color/color_666666"
|
||||
android:textSize="@dimen/text_size_12" />
|
||||
|
||||
<androidx.appcompat.widget.SwitchCompat
|
||||
android:id="@+id/notifySC"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
android:enabled="false"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:thumb="@drawable/switch_thumb_selector"
|
||||
app:track="@drawable/switch_track_selector" />
|
||||
</RelativeLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_1_dp"
|
||||
android:background="@color/color_f5f8fc" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/stickTopLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="@dimen/dimen_16_dp"
|
||||
android:paddingEnd="@dimen/dimen_16_dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:text="@string/chat_message_set_top"
|
||||
android:textColor="@color/color_666666"
|
||||
android:textSize="@dimen/text_size_12" />
|
||||
|
||||
<androidx.appcompat.widget.SwitchCompat
|
||||
android:id="@+id/stickTopSC"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
android:enabled="false"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:thumb="@drawable/switch_thumb_selector"
|
||||
app:track="@drawable/switch_track_selector" />
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
82
chatkit-ui/src/main/res-normal/layout/normal_chat_view.xml
Normal file
82
chatkit-ui/src/main/res-normal/layout/normal_chat_view.xml
Normal file
@@ -0,0 +1,82 @@
|
||||
<?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:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<FrameLayout android:id="@+id/chat_view_title_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.netease.yunxin.kit.common.ui.widgets.BackTitleBar
|
||||
android:id="@+id/chat_view_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_input_tip"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/color_white"
|
||||
android:layout_gravity="center_horizontal|bottom"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/dimen_9_dp"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:visibility="gone"
|
||||
android:text="@string/chat_message_is_typing"
|
||||
tools:ignore="SpUsage" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/chat_view_body_top"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/chat_view_body"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1">
|
||||
|
||||
<com.netease.yunxin.kit.chatkit.ui.view.message.ChatMessageListView
|
||||
android:id="@+id/messageView"
|
||||
android:layout_width="match_parent"
|
||||
android:overScrollMode="never"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_notification"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/color_white"
|
||||
android:gravity="center"
|
||||
android:padding="@dimen/dimen_5_dp"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_10"
|
||||
android:visibility="gone" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/chat_view_body_bottom"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/chat_view_bottom"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.netease.yunxin.kit.chatkit.ui.normal.view.MessageBottomLayout
|
||||
android:id="@+id/inputView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
2
chatkit-ui/src/main/res-normal/values/colors.xml
Normal file
2
chatkit-ui/src/main/res-normal/values/colors.xml
Normal file
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources></resources>
|
||||
Reference in New Issue
Block a user