taomenggo init
BIN
chatkit-ui/src/main/res-fun/drawable-xxhdpi/fsong_img.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 9.8 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 715 B |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 652 B |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 5.7 KiB |
|
After Width: | Height: | Size: 932 B |
|
After Width: | Height: | Size: 416 B |
|
After Width: | Height: | Size: 375 B |
|
After Width: | Height: | Size: 907 B |
BIN
chatkit-ui/src/main/res-fun/drawable-xxhdpi/ic_autoplay_self.png
Normal file
|
After Width: | Height: | Size: 686 B |
|
After Width: | Height: | Size: 739 B |
|
After Width: | Height: | Size: 561 B |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 530 B |
|
After Width: | Height: | Size: 937 B |
BIN
chatkit-ui/src/main/res-fun/drawable-xxhdpi/ic_chatp2p_call.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
chatkit-ui/src/main/res-fun/drawable-xxhdpi/ic_chatp2p_video.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
BIN
chatkit-ui/src/main/res-fun/drawable-xxhdpi/ic_search_empty.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
chatkit-ui/src/main/res-fun/drawable-xxhdpi/ic_useralbum_img.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
chatkit-ui/src/main/res-fun/drawable-xxhdpi/juxing_pop.png
Normal file
|
After Width: | Height: | Size: 6.2 KiB |
BIN
chatkit-ui/src/main/res-fun/drawable-xxhdpi/juxing_pop1.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
7
chatkit-ui/src/main/res-fun/drawable/cursor_color.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<size android:width="@dimen/dimen_1_dp"/>
|
||||
<solid android:color="@color/color_6b3689"/>
|
||||
</shape>
|
||||
@@ -0,0 +1,26 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:gravity="bottom|center_horizontal" android:height="12dp" android:width="12dp"
|
||||
android:top="10dp" android:right="2dp"
|
||||
android:bottom="3dp">
|
||||
<rotate android:fromDegrees="45">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="#ffA9EA7A"/>
|
||||
</shape>
|
||||
</rotate>
|
||||
</item>
|
||||
|
||||
|
||||
<item
|
||||
android:bottom="7dp">
|
||||
<shape android:shape="rectangle">
|
||||
<corners android:radius="16dp" />
|
||||
<solid android:color="#ffA9EA7A" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
@@ -0,0 +1,26 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:gravity="bottom|center_horizontal" android:height="12dp" android:width="12dp"
|
||||
android:top="10dp" android:right="2dp"
|
||||
android:bottom="3dp">
|
||||
<rotate android:fromDegrees="45">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="#E75D58"/>
|
||||
</shape>
|
||||
</rotate>
|
||||
</item>
|
||||
|
||||
|
||||
<item
|
||||
android:bottom="7dp">
|
||||
<shape android:shape="rectangle">
|
||||
<corners android:radius="16dp" />
|
||||
<solid android:color="#E75D58" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?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:topLeftRadius="@dimen/dimen_20_dp"
|
||||
android:bottomLeftRadius="@dimen/dimen_20_dp" />
|
||||
|
||||
|
||||
|
||||
<solid android:color="#80000000" />
|
||||
</shape>
|
||||
@@ -0,0 +1,22 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="375dp"
|
||||
android:height="128dp"
|
||||
android:viewportWidth="375"
|
||||
android:viewportHeight="128">
|
||||
<path
|
||||
android:pathData="M0,29.87C58.82,10.49 121.69,0 187,0C252.68,0 315.89,10.61 375,30.2V128H0V29.87Z"
|
||||
android:fillType="evenOdd">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="187.5"
|
||||
android:startY="0"
|
||||
android:endX="187.5"
|
||||
android:endY="117"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FF9C9C9C"/>
|
||||
<item android:offset="1" android:color="#FFD5D5D5"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
</vector>
|
||||
@@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="375dp"
|
||||
android:height="128dp"
|
||||
android:viewportWidth="375"
|
||||
android:viewportHeight="128">
|
||||
<path
|
||||
android:pathData="M0,29.87C58.82,10.49 121.69,0 187,0C252.68,0 315.89,10.61 375,30.2V128H0V29.87Z"
|
||||
android:fillColor="#2D2D2D"
|
||||
android:fillType="evenOdd"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,12 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="315dp"
|
||||
android:height="89dp"
|
||||
android:viewportWidth="315"
|
||||
android:viewportHeight="89">
|
||||
<path
|
||||
android:pathData="M16,0L299,0A16,16 0,0 1,315 16L315,64A16,16 0,0 1,299 80L16,80A16,16 0,0 1,0 64L0,16A16,16 0,0 1,16 0z"
|
||||
android:fillColor="#A9EA7A"/>
|
||||
<path
|
||||
android:pathData="M158.56,61.41L169.87,72.73A2,2 0,0 1,169.87 75.56L158.56,86.87A2,2 119.43,0 1,155.73 86.87L144.41,75.56A2,2 72.12,0 1,144.41 72.73L155.73,61.41A2,2 0,0 1,158.56 61.41z"
|
||||
android:fillColor="#A9EA7A"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?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">
|
||||
<solid android:color="@color/color_white" />
|
||||
<corners android:topLeftRadius="12dp" android:topRightRadius="12dp" />
|
||||
|
||||
</shape>
|
||||
@@ -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>
|
||||
@@ -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="#58BE6B"/>
|
||||
|
||||
</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>
|
||||
@@ -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>
|
||||
@@ -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="#58BE6B" />
|
||||
|
||||
</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,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. -->
|
||||
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle" >
|
||||
|
||||
<solid android:color="@android:color/white"/>
|
||||
<stroke android:color="#d8d8d8" android:width="@dimen/dimen_1_dp"/>
|
||||
<corners android:radius="@dimen/dimen_3_dp" />
|
||||
</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_chat_radio_button_selected" android:state_checked="true" />
|
||||
|
||||
<item android:drawable="@drawable/fun_chat_radio_button_not_selected" android:state_checked="false" />
|
||||
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/fun_ic_chat_input_text" android:state_checked="true" />
|
||||
<item android:drawable="@drawable/fun_ic_chat_input_audio" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/fun_ic_chat_audiotype_checked" android:state_checked="true" />
|
||||
<item android:drawable="@drawable/fun_ic_chat_audiotype" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/fun_ic_chat_input_emoji" android:state_checked="true" />
|
||||
<item android:drawable="@drawable/fun_ic_chat_input_emoji" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/fun_ic_chat_input_more_check" android:state_checked="true" />
|
||||
<item android:drawable="@drawable/fun_ic_chat_input_more" android:state_checked="false"/>
|
||||
</selector>
|
||||
@@ -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.
|
||||
-->
|
||||
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners android:radius="@dimen/dimen_4_dp" />
|
||||
<solid android:color="@color/color_ffffff" />
|
||||
</shape>
|
||||
@@ -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.
|
||||
-->
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<corners
|
||||
android:topRightRadius="@dimen/dimen_12_dp"
|
||||
android:bottomRightRadius="@dimen/dimen_12_dp"
|
||||
android:bottomLeftRadius="@dimen/dimen_12_dp" />
|
||||
|
||||
<size
|
||||
android:width="@dimen/dimen_32_dp"
|
||||
android:height="@dimen/dimen_32_dp" />
|
||||
|
||||
<solid android:color="@android:color/white" />
|
||||
</shape><!--<layer-list xmlns:android="http://schemas.android.com/apk/res/android">-->
|
||||
<!-- <item android:gravity="start" android:height="10.45dp" android:width="10.45dp" android:top="15dp" android:left="2dp">-->
|
||||
<!-- <rotate android:fromDegrees="45">-->
|
||||
<!-- <shape android:shape="rectangle">-->
|
||||
<!-- <solid android:color="@color/color_ffffff"/>-->
|
||||
<!-- <size android:width="1dp" android:height="1dp"/>-->
|
||||
<!-- </shape>-->
|
||||
<!-- </rotate>-->
|
||||
<!-- </item>-->
|
||||
|
||||
|
||||
<!-- <item-->
|
||||
<!-- android:left="7dp">-->
|
||||
<!-- <shape android:shape="rectangle">-->
|
||||
<!-- <corners android:radius="4dp" />-->
|
||||
<!-- <size-->
|
||||
<!-- android:width="1dp"-->
|
||||
<!-- android:height="1dp" />-->
|
||||
<!-- <solid android:color="@color/color_ffffff" />-->
|
||||
<!-- </shape>-->
|
||||
<!-- </item>-->
|
||||
<!--</layer-list>-->
|
||||
@@ -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.
|
||||
-->
|
||||
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners android:radius="@dimen/dimen_4_dp" />
|
||||
<solid android:color="@color/fun_chat_message_replay_text_color" />
|
||||
</shape>
|
||||
53
chatkit-ui/src/main/res-fun/drawable/fun_message_send_bg.xml
Normal file
@@ -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.
|
||||
-->
|
||||
|
||||
<!--<layer-list xmlns:android="http://schemas.android.com/apk/res/android">-->
|
||||
<!-- <?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.-->
|
||||
<!-- –>-->
|
||||
<!-- <item-->
|
||||
<!-- android:width="10.45dp"-->
|
||||
<!-- android:height="10.45dp"-->
|
||||
<!-- android:gravity="center"-->
|
||||
<!-- android:right="2dp"-->
|
||||
<!-- android:top="15dp">-->
|
||||
<!-- <rotate android:fromDegrees="45">-->
|
||||
<!-- <shape android:shape="rectangle">-->
|
||||
<!-- <solid android:color="#ff6b3689" />-->
|
||||
<!-- <size-->
|
||||
<!-- android:width="1dp"-->
|
||||
<!-- android:height="1dp" />-->
|
||||
<!-- </shape>-->
|
||||
<!-- </rotate>-->
|
||||
<!-- </item>-->
|
||||
|
||||
|
||||
<!-- <item android:right="7dp">-->
|
||||
<!-- <shape android:shape="rectangle">-->
|
||||
<!-- <corners android:radius="4dp" />-->
|
||||
<!-- <solid android:color="#ff6b3689" />-->
|
||||
<!-- </shape>-->
|
||||
<!-- </item>-->
|
||||
<!-- </layer-list>-->
|
||||
|
||||
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<corners
|
||||
android:bottomLeftRadius="@dimen/dimen_12_dp"
|
||||
android:bottomRightRadius="@dimen/dimen_12_dp"
|
||||
android:topLeftRadius="@dimen/dimen_12_dp" />
|
||||
|
||||
<size
|
||||
android:width="@dimen/dimen_32_dp"
|
||||
android:height="@dimen/dimen_32_dp" />
|
||||
|
||||
<solid android:color="@color/color_ffcad8" />
|
||||
|
||||
</shape>
|
||||
@@ -0,0 +1,28 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:gravity="start" android:height="10.45dp" android:width="10.45dp" android:top="15dp" android:left="2dp">
|
||||
<rotate android:fromDegrees="45">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="#ffA9EA7A"/>
|
||||
<size android:width="1dp" android:height="1dp"/>
|
||||
</shape>
|
||||
</rotate>
|
||||
</item>
|
||||
|
||||
|
||||
<item
|
||||
android:left="7dp">
|
||||
<shape android:shape="rectangle">
|
||||
<corners android:radius="4dp" />
|
||||
<size
|
||||
android:width="1dp"
|
||||
android:height="1dp" />
|
||||
<solid android:color="#ffA9EA7A" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
12
chatkit-ui/src/main/res-fun/drawable/fun_shape_corner_bg.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?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_4_dp" />
|
||||
<stroke android:color="#DEE0E2" android:width="@dimen/dimen_1_dp"/>
|
||||
<solid android:color="@color/color_white" />
|
||||
</shape>
|
||||
10
chatkit-ui/src/main/res-fun/drawable/ic_unread_point.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
|
||||
<size
|
||||
android:width="@dimen/dimen_8_dp"
|
||||
android:height="@dimen/dimen_8_dp" />
|
||||
|
||||
<solid android:color="@color/color_ff4e54" />
|
||||
</shape>
|
||||
56
chatkit-ui/src/main/res-fun/layout/business_viewhead.xml
Normal file
@@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="218dp"
|
||||
android:layout_height="86dp"
|
||||
android:id="@+id/big_ly"
|
||||
android:background="@drawable/fun_message_send_bg"
|
||||
android:orientation="vertical">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
|
||||
android:orientation="horizontal">
|
||||
<com.netease.yunxin.kit.common.ui.widgets.ContactAvatarView
|
||||
android:id="@+id/cavIcon"
|
||||
android:layout_width="@dimen/dimen_32_dp"
|
||||
android:layout_height="@dimen/dimen_32_dp"
|
||||
android:layout_marginStart="10dp"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginRight="@dimen/dimen_10_dp"
|
||||
android:layout_height="@dimen/dimen_32_dp"
|
||||
android:id="@+id/user_name_tv"
|
||||
android:lines="1"
|
||||
android:ellipsize="end"
|
||||
android:textStyle="bold"
|
||||
android:layout_marginLeft="@dimen/dimen_10_dp"
|
||||
android:gravity="center_vertical"
|
||||
android:textColor="@color/color_white"
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1px"
|
||||
android:id="@+id/line_v"
|
||||
android:layout_marginTop="@dimen/dimen_10_dp"
|
||||
android:background="#A278B9"/>
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@string/gerenmp_txt"
|
||||
android:id="@+id/mingpian_tv"
|
||||
android:layout_marginLeft="@dimen/dimen_10_dp"
|
||||
android:gravity="center_vertical"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="10sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
</merge>
|
||||
147
chatkit-ui/src/main/res-fun/layout/dialog_share_business.xml
Normal file
@@ -0,0 +1,147 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/title_transfer"
|
||||
android:orientation="vertical">
|
||||
|
||||
<androidx.appcompat.widget.LinearLayoutCompat
|
||||
android:layout_width="285dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/shape_dialog_bg_new"
|
||||
android:minHeight="282dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dimen_15_dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:text="@string/fasonggei_txt"
|
||||
android:textColor="#ff333333"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.netease.yunxin.kit.common.ui.widgets.ContactAvatarView
|
||||
android:id="@+id/cavIcon"
|
||||
android:layout_width="@dimen/dimen_40_dp"
|
||||
android:layout_height="@dimen/dimen_40_dp"
|
||||
android:layout_marginStart="15dp"
|
||||
app:avatarCorner="@dimen/dimen_40_dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/user_name_tv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_40_dp"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="end"
|
||||
android:layout_marginLeft="@dimen/dimen_15_dp"
|
||||
android:layout_marginRight="@dimen/dimen_15_dp"
|
||||
android:gravity="center_vertical"
|
||||
android:textColor="#ff333333"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1px"
|
||||
android:layout_marginLeft="@dimen/dimen_15_dp"
|
||||
android:layout_marginTop="@dimen/dimen_20_dp"
|
||||
android:layout_marginRight="@dimen/dimen_15_dp"
|
||||
android:background="@color/color_d8d8d8" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dimen_15_dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:text="@string/gerenminp_txt"
|
||||
android:textColor="#ff7e7b84"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.netease.yunxin.kit.common.ui.widgets.ContactAvatarView
|
||||
android:id="@+id/cavIcon1"
|
||||
android:layout_width="@dimen/dimen_40_dp"
|
||||
android:layout_height="@dimen/dimen_40_dp"
|
||||
android:layout_marginStart="15dp"
|
||||
app:avatarCorner="@dimen/dimen_40_dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/user_name_tv1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_40_dp"
|
||||
android:layout_marginLeft="@dimen/dimen_15_dp"
|
||||
android:layout_marginRight="@dimen/dimen_15_dp"
|
||||
android:gravity="center_vertical"
|
||||
android:textColor="#ff333333"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1px"
|
||||
android:background="@color/color_d8d8d8" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_62_dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/cancel_tv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:text="@string/cancel_txt"
|
||||
android:textColor="@color/color_fe6881"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<View
|
||||
android:id="@+id/line_v"
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="42dp"
|
||||
android:background="@color/color_d8d8d8" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/sumbit_tv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:text="@string/sure_txt"
|
||||
android:textColor="@color/color_6d80ff"
|
||||
android:textSize="16sp" />
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
@@ -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/fun_pin_audio_message_bg"
|
||||
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,92 @@
|
||||
<?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="@color/fun_chat_message_pin_view_holder_bg_color"
|
||||
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"
|
||||
app:avatarCorner="4dp"
|
||||
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>
|
||||
191
chatkit-ui/src/main/res-fun/layout/fun_chat_fragment.xml
Normal file
@@ -0,0 +1,191 @@
|
||||
<?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"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/fun_chat_page_bg_color"
|
||||
android:orientation="vertical">
|
||||
|
||||
<include
|
||||
android:id="@+id/chattopview"
|
||||
layout="@layout/fun_chat_topview" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/flchatview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.netease.yunxin.kit.chatkit.ui.fun.view.FunChatView
|
||||
android:id="@+id/chatView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/layoutp2pTop"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="67dp"
|
||||
android:background="@color/color_4d000000"
|
||||
android:visibility="gone">
|
||||
|
||||
<View
|
||||
android:id="@+id/line"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_2_dp"
|
||||
android:background="@color/color_fcfcfc"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_92_dp"
|
||||
android:background="@android:color/white"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintTop_toBottomOf="@+id/line">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_audiocall"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:text="@string/chat_p2pcall_txt"
|
||||
app:drawableTopCompat="@drawable/ic_chatp2p_call" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_videocall"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:text="@string/chat_p2pvideo_txt"
|
||||
app:drawableTopCompat="@drawable/ic_chatp2p_video" />
|
||||
</LinearLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_teamannouncement"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_40_dp"
|
||||
android:background="#ccffffff"
|
||||
android:visibility="gone">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="@dimen/dimen_15_dp"
|
||||
app:srcCompat="@drawable/ic_chatview_teamannouncement" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_teamannouncement"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="@dimen/dimen_5_dp"
|
||||
android:layout_weight="1"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_14" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_teammannouncement_close"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingLeft="@dimen/dimen_5_dp"
|
||||
android:paddingEnd="@dimen/dimen_15_dp"
|
||||
app:srcCompat="@drawable/ic_clear" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_chatback_message"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dimen_40_dp"
|
||||
android:layout_gravity="bottom|right"
|
||||
android:layout_marginBottom="@dimen/dimen_150_dp"
|
||||
android:background="@drawable/fun_bg_chat_backmessage"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="@dimen/dimen_10_dp"
|
||||
app:srcCompat="@drawable/ic_chatbackmessage_down" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="@dimen/dimen_5_dp"
|
||||
android:layout_marginEnd="@dimen/dimen_20_dp"
|
||||
android:text="@string/chat_backmessage"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="@dimen/text_size_14" />
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/chatSearchView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@android:color/white"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dimen_15_dp"
|
||||
android:layout_marginTop="@dimen/dimen_20_dp"
|
||||
android:text="@string/chat_searchresult"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_14" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/searchRv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="@dimen/dimen_15_dp"
|
||||
android:layout_marginEnd="@dimen/dimen_15_dp"
|
||||
android:scrollbars="vertical" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/emptyLayout"
|
||||
android:layout_width="@dimen/dimen_100_dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="@dimen/dimen_55_dp"
|
||||
android:orientation="vertical"
|
||||
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:contentDescription="@string/chat_location_empty"
|
||||
android:src="@drawable/fun_ic_chat_search_empty" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/emptyTv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dimen_6_dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="@string/message_search_empty"
|
||||
android:textColor="@color/fun_chat_search_empty_text_color"
|
||||
android:textSize="@dimen/text_size_14" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,47 @@
|
||||
<?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"
|
||||
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" />
|
||||
</LinearLayout>
|
||||
|
||||
<View android:id="@+id/location_click"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
</FrameLayout>
|
||||
@@ -0,0 +1,90 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/big_bg"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/fun_message_send_bg"
|
||||
android:padding="@dimen/dimen_10_dp">
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/card_1"
|
||||
android:layout_width="165dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:cardBackgroundColor="@android:color/white"
|
||||
app:cardCornerRadius="@dimen/dimen_6_dp"
|
||||
app:cardElevation="0dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="133dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/pic_ic"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:adjustViewBounds="true"
|
||||
android:scaleType="centerCrop" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_useralbum_number"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_gravity="bottom|right"
|
||||
android:background="#80000000"
|
||||
android:drawableStart="@drawable/ic_useralbum_img"
|
||||
android:drawablePadding="@dimen/dimen_4_dp"
|
||||
android:padding="@dimen/dimen_5_dp"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="@dimen/text_size_12" />
|
||||
</RelativeLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dimen_5_dp"
|
||||
android:layout_marginTop="@dimen/dimen_10_dp"
|
||||
android:layout_marginEnd="@dimen/dimen_5_dp"
|
||||
android:ellipsize="end"
|
||||
android:lineSpacingExtra="@dimen/dimen_3_dp"
|
||||
android:maxLines="2"
|
||||
android:text="ddd"
|
||||
android:textColor="#383838"
|
||||
android:textSize="@dimen/text_size_16" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_1_dp"
|
||||
android:layout_marginStart="@dimen/dimen_5_dp"
|
||||
android:layout_marginTop="@dimen/dimen_10_dp"
|
||||
android:layout_marginEnd="@dimen/dimen_5_dp"
|
||||
android:background="#DDDDDD" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/user_name_tv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/dimen_5_dp"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical"
|
||||
android:lines="1"
|
||||
android:singleLine="true"
|
||||
android:text="@string/chat_custom_albums_share"
|
||||
android:textColor="@color/color_999999"
|
||||
android:textSize="12sp" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
</LinearLayout>
|
||||
|
||||
</merge>
|
||||
@@ -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.
|
||||
-->
|
||||
|
||||
<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:paddingHorizontal="@dimen/dimen_10_dp"
|
||||
android:paddingVertical="@dimen/dimen_8_dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivPlay"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_centerVertical="true" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/animation"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="@dimen/dimen_5_dp"
|
||||
android:layout_toEndOf="@+id/ivPlay"
|
||||
android:orientation="horizontal" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvTime"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginStart="@dimen/dimen_10_dp"
|
||||
android:layout_toEndOf="@+id/animation"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_14" />
|
||||
|
||||
|
||||
<View
|
||||
android:id="@+id/unread_dot"
|
||||
android:layout_width="@dimen/dimen_6_dp"
|
||||
android:layout_height="@dimen/dimen_6_dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginStart="@dimen/dimen_2_dp"
|
||||
android:layout_toEndOf="@+id/tvTime"
|
||||
android:background="@drawable/ic_unread_point"
|
||||
android:visibility="gone" />
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -0,0 +1,367 @@
|
||||
<?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/chat_message_input_root"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/fun_chat_input_bg_color">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/inputBarLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#f7f7f7"
|
||||
android:orientation="horizontal"
|
||||
android:paddingTop="@dimen/dimen_7_dp"
|
||||
android:paddingBottom="@dimen/dimen_10_dp"
|
||||
android:visibility="visible">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/inputLeftLayout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="@dimen/dimen_15_dp"
|
||||
android:layout_marginEnd="@dimen/dimen_15_dp"
|
||||
android:layout_marginBottom="@dimen/dimen_8_dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/inputAudioRb"
|
||||
android:layout_width="@dimen/dimen_32_dp"
|
||||
android:layout_height="@dimen/dimen_32_dp"
|
||||
android:layout_gravity="bottom"
|
||||
android:background="@drawable/fun_ic_chat_input_audio_selector"
|
||||
android:button="@null"
|
||||
android:checked="false"
|
||||
android:clickable="false"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/inputMoreRb"
|
||||
android:layout_width="@dimen/dimen_20_dp"
|
||||
android:layout_height="@dimen/dimen_20_dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:background="@drawable/fun_ic_chat_input_more_selector"
|
||||
android:button="@null"
|
||||
android:checked="false"
|
||||
android:clickable="false"
|
||||
android:visibility="visible"
|
||||
app:layout_constraintStart_toEndOf="@+id/inputAudioRb"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/inputCameraRb"
|
||||
android:layout_width="@dimen/dimen_20_dp"
|
||||
android:layout_height="@dimen/dimen_20_dp"
|
||||
android:layout_marginStart="@dimen/dimen_15_dp"
|
||||
android:background="@drawable/fun_ic_chat_input_camera"
|
||||
android:button="@null"
|
||||
android:checked="false"
|
||||
android:clickable="false"
|
||||
app:layout_constraintStart_toEndOf="@+id/inputMoreRb"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_goneMarginStart="0dp" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/inputAlbumRb"
|
||||
android:layout_width="@dimen/dimen_20_dp"
|
||||
android:layout_height="@dimen/dimen_20_dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="@dimen/dimen_15_dp"
|
||||
android:background="@drawable/fun_ic_chat_input_photo"
|
||||
android:button="@null"
|
||||
android:checked="false"
|
||||
android:clickable="false"
|
||||
app:layout_constraintStart_toEndOf="@+id/inputCameraRb"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_input"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dimen_15_dp"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@+id/inputRightLayout"
|
||||
app:layout_constraintStart_toEndOf="@+id/inputLeftLayout"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_goneMarginEnd="@dimen/dimen_15_dp">
|
||||
|
||||
<com.netease.yunxin.kit.common.ui.widgets.RoundFrameLayout
|
||||
android:id="@+id/inputLayout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0.8"
|
||||
android:background="@drawable/bg_message_input"
|
||||
android:paddingTop="@dimen/dimen_8_dp"
|
||||
android:paddingBottom="@dimen/dimen_8_dp"
|
||||
app:corner_radius="@dimen/dimen_4_dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/replyLayout">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/inputEt"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@null"
|
||||
android:ellipsize="end"
|
||||
android:hint="@string/fun_chat_input_hint_tips"
|
||||
android:inputType="textMultiLine"
|
||||
android:maxLength="2000"
|
||||
android:maxLines="9"
|
||||
android:paddingStart="@dimen/dimen_12_dp"
|
||||
android:textColorHint="@color/color_b3b7bc"
|
||||
android:textCursorDrawable="@null"
|
||||
android:textSize="@dimen/text_size_16"
|
||||
tools:ignore="LabelFor" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/inputAudioTv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/color_white"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:gravity="center"
|
||||
android:text="@string/chat_input_audio_record_title"
|
||||
android:textColor="@color/fun_chat_input_send_audio_color"
|
||||
android:textSize="@dimen/text_size_16"
|
||||
android:textStyle="bold"
|
||||
android:visibility="gone" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/inputMuteTv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/color_e3e4e4"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingStart="@dimen/dimen_12_dp"
|
||||
android:text="@string/chat_team_all_mute"
|
||||
android:visibility="gone" />
|
||||
</com.netease.yunxin.kit.common.ui.widgets.RoundFrameLayout>
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/inputEmojiRb"
|
||||
android:layout_width="@dimen/dimen_20_dp"
|
||||
android:layout_height="@dimen/dimen_20_dp"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_marginStart="@dimen/dimen_10_dp"
|
||||
android:layout_marginRight="@dimen/dimen_10_dp"
|
||||
android:layout_marginBottom="@dimen/dimen_5_dp"
|
||||
android:background="@drawable/fun_ic_chat_input_emoji_selector"
|
||||
android:button="@null"
|
||||
android:checked="false"
|
||||
android:clickable="false" />
|
||||
</LinearLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/inputRightLayout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="@dimen/dimen_10_dp"
|
||||
android:paddingEnd="@dimen/dimen_15_dp"
|
||||
android:paddingBottom="@dimen/dimen_11_dp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/layout_input"
|
||||
app:layout_constraintEnd_toEndOf="parent">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/inputAudio2Rb"
|
||||
android:layout_width="@dimen/dimen_20_dp"
|
||||
android:layout_height="@dimen/dimen_20_dp"
|
||||
android:background="@drawable/fun_ic_chat_input_audiotype_selector"
|
||||
android:button="@null"
|
||||
android:checked="false"
|
||||
android:clickable="false" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/emoji_fsong_tv"
|
||||
android:layout_width="@dimen/dimen_20_dp"
|
||||
android:layout_height="@dimen/dimen_18_dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:background="@drawable/fsong_img"
|
||||
android:button="@null"
|
||||
android:checked="false"
|
||||
android:clickable="false"
|
||||
android:visibility="gone" />
|
||||
</FrameLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#F7F7F7"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/inputBarLayout">
|
||||
|
||||
<!--消息回复-->
|
||||
<com.netease.yunxin.kit.common.ui.widgets.RoundFrameLayout
|
||||
android:id="@+id/replyLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="15dp"
|
||||
android:layout_marginRight="15dp"
|
||||
android:layout_marginBottom="@dimen/dimen_4_dp"
|
||||
android:background="@color/fun_chat_input_reply_bg_color"
|
||||
android:gravity="center_vertical"
|
||||
android:visibility="gone"
|
||||
app:corner_radius="@dimen/dimen_2_dp"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/replyContentTv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/dimen_20_dp"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="2"
|
||||
android:padding="@dimen/dimen_8_dp"
|
||||
android:textColor="@color/fun_chat_input_reply_text_color"
|
||||
android:textSize="@dimen/text_size_12" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/replyCloseIv"
|
||||
android:layout_width="@dimen/dimen_16_dp"
|
||||
android:layout_height="@dimen/dimen_16_dp"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
android:layout_marginEnd="@dimen/dimen_7_dp"
|
||||
android:src="@drawable/fun_ic_chat_input_reply_close" />
|
||||
|
||||
</com.netease.yunxin.kit.common.ui.widgets.RoundFrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/inputMoreLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.netease.yunxin.kit.chatkit.ui.view.emoji.EmojiPickerView
|
||||
android:id="@+id/emojiPickerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone" />
|
||||
|
||||
<androidx.viewpager2.widget.ViewPager2
|
||||
android:id="@+id/actionsPanelVp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_188_dp"
|
||||
android:visibility="gone" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/actionsAlbum"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_188_dp"
|
||||
android:visibility="gone" />
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/actionsAudio"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvaudio_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dimen_10_dp"
|
||||
android:text="@string/fun_chat_audio_record_hint"
|
||||
android:textColor="@color/color_bcbcbc"
|
||||
android:textSize="@dimen/text_size_12"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/layoutaudiostatus"
|
||||
android:layout_width="@dimen/dimen_64_dp"
|
||||
android:layout_height="@dimen/dimen_64_dp"
|
||||
android:layout_marginTop="@dimen/dimen_24_dp"
|
||||
android:layout_marginBottom="@dimen/dimen_34_dp"
|
||||
android:max="60"
|
||||
app:indicatorColor="@color/color_e81e1e"
|
||||
app:indicatorSize="@dimen/dimen_64_dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvaudio_time"
|
||||
app:trackCornerRadius="@dimen/dimen_45_dp" />
|
||||
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/ivaudiostatus"
|
||||
android:layout_width="@dimen/dimen_20_dp"
|
||||
android:layout_height="@dimen/dimen_20_dp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/layoutaudiostatus"
|
||||
app:layout_constraintEnd_toEndOf="@+id/layoutaudiostatus"
|
||||
app:layout_constraintStart_toStartOf="@+id/layoutaudiostatus"
|
||||
app:layout_constraintTop_toTopOf="@+id/layoutaudiostatus" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/ivaudiodelete"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/layoutaudiostatus"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toLeftOf="@+id/layoutaudiostatus"
|
||||
app:layout_constraintTop_toTopOf="@+id/layoutaudiostatus"
|
||||
app:srcCompat="@drawable/fun_ic_chat_audio_delete" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/ivaudiosend"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/layoutaudiostatus"
|
||||
app:layout_constraintLeft_toRightOf="@+id/layoutaudiostatus"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@+id/layoutaudiostatus"
|
||||
app:srcCompat="@drawable/fun_ic_chat_audio_send" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<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="inputBarLayout" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_chatblack"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_64_dp"
|
||||
android:background="@android:color/white"
|
||||
android:gravity="center"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_chatblack"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dimen_64_dp"
|
||||
android:layout_marginLeft="@dimen/dimen_30_dp"
|
||||
android:layout_marginEnd="@dimen/dimen_30_dp"
|
||||
android:background="@android:color/white"
|
||||
android:drawableStart="@drawable/ic_chat_blacktips"
|
||||
android:drawablePadding="@dimen/dimen_5_dp"
|
||||
android:gravity="center" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -0,0 +1,47 @@
|
||||
<?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="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:paddingStart="@dimen/dimen_12_dp"
|
||||
android:layout_marginStart="@dimen/dimen_5_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_10_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:tint="@color/color_white"
|
||||
android:src="@drawable/ic_message_call_audio"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="@dimen/dimen_8_dp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,89 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/big_bg"
|
||||
android:layout_width="218dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/fun_message_send_bg"
|
||||
android:padding="@dimen/dimen_10_dp">
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/card_daifu"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:cardBackgroundColor="@android:color/white"
|
||||
app:cardCornerRadius="@dimen/dimen_6_dp"
|
||||
app:cardElevation="0dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/dimen_10_dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_40_dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ic_product"
|
||||
android:layout_width="@dimen/dimen_40_dp"
|
||||
android:layout_height="@dimen/dimen_40_dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:scaleType="centerCrop" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_20_dp"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_marginStart="@dimen/dimen_10_dp"
|
||||
android:layout_toRightOf="@+id/ic_product"
|
||||
android:autoSizeMaxTextSize="@dimen/text_size_14"
|
||||
android:autoSizeMinTextSize="8sp"
|
||||
android:autoSizeTextType="uniform"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/chat_custom_daifu_title_txt"
|
||||
android:textColor="#383838" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_orderpay"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_20_dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginStart="@dimen/dimen_10_dp"
|
||||
android:layout_toRightOf="@+id/ic_product"
|
||||
android:autoSizeMaxTextSize="@dimen/text_size_14"
|
||||
android:autoSizeMinTextSize="8sp"
|
||||
android:autoSizeTextType="uniform"
|
||||
android:gravity="center_vertical"
|
||||
android:textColor="#FF382D" />
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_1_dp"
|
||||
android:layout_marginTop="@dimen/dimen_10_dp"
|
||||
android:background="#DDDDDD" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/user_name_tv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dimen_10_dp"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical"
|
||||
android:lines="1"
|
||||
android:singleLine="true"
|
||||
android:text="@string/daifu_txt"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="12sp" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
</LinearLayout>
|
||||
|
||||
</merge>
|
||||
@@ -0,0 +1,96 @@
|
||||
<?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_marginStart="@dimen/dimen_12_dp"
|
||||
android:layout_marginEnd="@dimen/dimen_12_dp"
|
||||
android:background="@drawable/fun_shape_corner_bg"
|
||||
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"
|
||||
android:layout_marginStart="@dimen/dimen_14_dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
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_12_dp"
|
||||
android:layout_marginBottom="@dimen/dimen_6_dp"
|
||||
android:textColor="@color/color_333333"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
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="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"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
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" />
|
||||
|
||||
<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,56 @@
|
||||
<?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:background="@drawable/fun_bg_shape_top_radius"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/teamTv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:paddingVertical="@dimen/dimen_12_dp"
|
||||
android:text="@string/chat_message_forward_to_team"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_14" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_1_dp"
|
||||
android:background="@color/color_f5f8fc" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/p2pTv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:paddingVertical="@dimen/dimen_12_dp"
|
||||
android:text="@string/chat_message_forward_to_person"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_14" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_6_dp"
|
||||
android:background="@color/fun_chat_secondary_page_bg_color" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/cancelTv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:paddingVertical="@dimen/dimen_12_dp"
|
||||
android:text="@string/cancel"
|
||||
android:textColor="@color/color_333333"
|
||||
android:paddingBottom="@dimen/dimen_30_dp"
|
||||
android:textSize="@dimen/text_size_14" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,69 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/big_bg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/fun_message_send_bg"
|
||||
android:padding="@dimen/dimen_10_dp">
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/card_invite"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:cardBackgroundColor="@android:color/white"
|
||||
app:cardCornerRadius="@dimen/dimen_6_dp"
|
||||
app:cardElevation="0dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_margin="@dimen/dimen_10_dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_20_dp"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/chat_custom_invitegroup_title_txt"
|
||||
android:textColor="#383838" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_invitegroup_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="@dimen/text_size_14"
|
||||
android:gravity="center_vertical"
|
||||
android:textColor="#383838" />
|
||||
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_1_dp"
|
||||
android:layout_marginTop="@dimen/dimen_10_dp"
|
||||
android:background="#DDDDDD" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/user_name_tv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dimen_10_dp"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical"
|
||||
android:lines="1"
|
||||
android:singleLine="true"
|
||||
android:text="@string/inviteGroup_txt"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="12sp" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
</LinearLayout>
|
||||
|
||||
</merge>
|
||||
@@ -0,0 +1,50 @@
|
||||
<?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:id="@+id/location_root"
|
||||
android:layout_width="218dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/color_white"
|
||||
android:maxHeight="234dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/dimen_10_dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/location_item_map_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="88dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/location_item_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dimen_10_dp"
|
||||
android:ellipsize="end"
|
||||
android:lines="1"
|
||||
android:textStyle="bold"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_14" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/location_item_address"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dimen_5_dp"
|
||||
android:ellipsize="end"
|
||||
android:lines="1"
|
||||
android:textColor="@color/color_999999"
|
||||
android:textSize="@dimen/text_size_12" />
|
||||
|
||||
</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,20 @@
|
||||
<?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_gravity="end"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="2"
|
||||
android:layout_marginStart="@dimen/dimen_12_dp"
|
||||
android:layout_marginEnd="@dimen/dimen_12_dp"
|
||||
android:padding="@dimen/dimen_10_dp"
|
||||
android:textColor="@color/color_666666"
|
||||
android:background="@drawable/fun_message_replay_bg"
|
||||
android:textSize="@dimen/text_size_13" />
|
||||
@@ -0,0 +1,37 @@
|
||||
<?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="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_14"
|
||||
android:paddingHorizontal="@dimen/dimen_8_dp"
|
||||
android:paddingVertical="@dimen/dimen_12_dp"
|
||||
android:textColor="@color/fun_chat_message_revoked_tip_text_color"
|
||||
android:text="@string/chat_message_revoked"
|
||||
android:gravity="center"
|
||||
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_14"
|
||||
android:paddingEnd="@dimen/dimen_16_dp"
|
||||
android:paddingVertical="@dimen/dimen_12_dp"
|
||||
android:text="@string/chat_message_re_edit"
|
||||
android:textColor="@color/fun_chat_message_revoked_action_btn_text_color"
|
||||
android:visibility="gone" />
|
||||
|
||||
</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_16"
|
||||
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_383838"
|
||||
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,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:id="@+id/rootview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/thumbnail"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@drawable/chat_zhanwei_img"
|
||||
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: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"
|
||||
android:layout_marginEnd="@dimen/dimen_5_dp"
|
||||
android:layout_marginBottom="@dimen/dimen_25_dp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/thumbnail"
|
||||
app:layout_constraintRight_toRightOf="@+id/thumbnail"
|
||||
tools:ignore="SpUsage"
|
||||
tools:text="00:00"
|
||||
/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/messageTipText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingHorizontal="@dimen/dimen_16_dp"
|
||||
android:paddingVertical="@dimen/dimen_10_dp"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_16"
|
||||
tools:text="@tools:sample/lorem" />
|
||||
@@ -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,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"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:background="@color/fun_chat_secondary_page_bg_color"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.netease.yunxin.kit.common.ui.widgets.BackTitleBar
|
||||
android:id="@+id/titleBar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:titleTextColor="@color/fun_chat_read_title_color"
|
||||
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/fun_chat_read_selected_color"
|
||||
app:tabIndicatorColor="@color/fun_chat_read_selected_color"
|
||||
app:tabIndicatorHeight="@dimen/dimen_2_dp"
|
||||
app:tabRippleColor="@null"
|
||||
app:tabBackground="@null"
|
||||
android:background="@color/fun_chat_secondary_page_bg_color"
|
||||
app:tabTextColor="@color/fun_chat_read_name_color" />
|
||||
|
||||
<androidx.viewpager2.widget.ViewPager2
|
||||
android:id="@+id/viewPager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
@@ -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/emptyLayout"
|
||||
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/fun_ic_chat_search_empty" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/stateTv"
|
||||
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,33 @@
|
||||
<?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="64dp"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.netease.yunxin.kit.common.ui.widgets.ContactAvatarView
|
||||
android:id="@+id/avatar"
|
||||
android:layout_width="@dimen/dimen_42_dp"
|
||||
android:layout_height="@dimen/dimen_42_dp"
|
||||
android:layout_marginEnd="@dimen/dimen_12_dp"
|
||||
app:avatarCorner="@dimen/dimen_4_dp"
|
||||
android:layout_gravity="center_vertical" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/nickname"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxLines="1"
|
||||
android:ellipsize="end"
|
||||
android:textColor="@color/fun_chat_read_name_color"
|
||||
android:textSize="@dimen/text_size_16"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginEnd="@dimen/dimen_20_dp" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,99 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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">
|
||||
|
||||
|
||||
<View android:id="@+id/bottomLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="128dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
android:background="@drawable/fun_bg_chat_input_audio_bottom_recording"/>
|
||||
|
||||
<ImageView
|
||||
app:layout_constraintStart_toStartOf="@id/bottomLayout"
|
||||
app:layout_constraintBottom_toBottomOf="@id/bottomLayout"
|
||||
app:layout_constraintTop_toTopOf="@id/bottomLayout"
|
||||
app:layout_constraintEnd_toEndOf="@id/bottomLayout"
|
||||
android:layout_width="@dimen/dimen_44_dp"
|
||||
android:layout_height="@dimen/dimen_44_dp"
|
||||
android:src="@drawable/fun_ic_chat_input_audio_record_bottom" />
|
||||
|
||||
<ImageView android:id="@+id/cancelView"
|
||||
android:layout_width="72dp"
|
||||
android:layout_height="72dp"
|
||||
app:layout_constraintBottom_toTopOf="@id/bottomLayout"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:layout_gravity="center_horizontal|bottom"
|
||||
android:layout_marginBottom="@dimen/dimen_60_dp"
|
||||
android:layout_marginTop="@dimen/dimen_60_dp"
|
||||
android:src="@drawable/fun_ic_chat_input_audio_record_cancel_btn"/>
|
||||
|
||||
<TextView android:id="@+id/sendTipsView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toBottomOf="@id/cancelView"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:textSize="@dimen/text_size_16"
|
||||
android:layout_gravity="center_horizontal|bottom"
|
||||
android:textColor="@color/fun_chat_input_audio_record_tips_color"
|
||||
android:text="@string/fun_chat_audio_record_send_tips"
|
||||
android:layout_marginTop="@dimen/dimen_20_dp"/>
|
||||
|
||||
<TextView android:id="@+id/cancelTipsView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="@dimen/text_size_16"
|
||||
app:layout_constraintBottom_toTopOf="@id/cancelView"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:textColor="@color/fun_chat_input_audio_record_tips_color"
|
||||
android:text="@string/fun_chat_audio_record_cancel_tips"
|
||||
android:layout_marginBottom="16dp"/>
|
||||
|
||||
<View
|
||||
android:id="@+id/recordBg"
|
||||
android:layout_width="165dp"
|
||||
app:layout_constraintBottom_toTopOf="@id/cancelView"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:layout_marginBottom="85dp"
|
||||
android:background="@drawable/fun_bg_chat_audio_recording"
|
||||
android:layout_height="88dp"/>
|
||||
|
||||
<com.airbnb.lottie.LottieAnimationView
|
||||
android:id="@+id/recordLottieView"
|
||||
android:layout_width="74dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
app:layout_constraintBottom_toBottomOf="@id/recordBg"
|
||||
android:layout_marginBottom="7dp"
|
||||
app:layout_constraintTop_toTopOf="@id/recordBg"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:scaleType="centerInside"
|
||||
app:lottie_rawRes="@raw/fun_audio_input_lottie_data"
|
||||
app:lottie_autoPlay="true"
|
||||
app:lottie_loop="true"
|
||||
android:visibility="visible" />
|
||||
|
||||
<TextView android:id="@+id/recordingMaxTimeTv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
app:layout_constraintBottom_toBottomOf="@id/recordBg"
|
||||
android:layout_marginBottom="7dp"
|
||||
app:layout_constraintTop_toTopOf="@id/recordBg"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:textSize="18dp"
|
||||
android:text="@string/fun_chat_audio_record_max_time_tips"
|
||||
tools:ignore="SpUsage" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -0,0 +1,113 @@
|
||||
<?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"
|
||||
android:background="@color/fun_chat_secondary_page_bg_color"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<View
|
||||
android:id="@+id/searchTitleBar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_36_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="36dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
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_toStartOf="@id/cancelBtn"
|
||||
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" />
|
||||
|
||||
<TextView android:id="@+id/cancelBtn"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dimen_36_dp"
|
||||
android:text="@string/cancel"
|
||||
android:layout_marginTop="@dimen/dimen_8_dp"
|
||||
app:layout_constraintBottom_toBottomOf="@id/searchEt"
|
||||
app:layout_constraintStart_toEndOf="@id/searchEt"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/searchEt"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:visibility="visible"
|
||||
android:textColor="@color/color_666666"
|
||||
android:textSize="@dimen/text_size_16"
|
||||
tools:ignore="MissingConstraints" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/searchRv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:scrollbars="vertical"
|
||||
android:layout_marginTop="@dimen/dimen_12_dp"
|
||||
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/fun_ic_chat_search_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/fun_chat_search_empty_text_color"
|
||||
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,75 @@
|
||||
<?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="@dimen/dimen_75_dp"
|
||||
android:background="@color/fun_chat_search_item_bg_color"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingBottom="10dp">
|
||||
|
||||
<com.netease.yunxin.kit.common.ui.widgets.ContactAvatarView
|
||||
android:id="@+id/avatarView"
|
||||
android:layout_width="@dimen/dimen_45_dp"
|
||||
android:layout_height="@dimen/dimen_45_dp"
|
||||
app:avatarCorner="@dimen/dimen_45_dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="vertical"
|
||||
app:layout_constrainedWidth="true"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@+id/timeTv"
|
||||
app:layout_constraintStart_toEndOf="@id/avatarView"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="MissingConstraints">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/nameTv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical|start"
|
||||
android:maxWidth="@dimen/dimen_188_dp"
|
||||
android:maxLines="1"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_16"
|
||||
tools:ignore="SpUsage" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/messageTv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:paddingTop="4dp"
|
||||
android:textColor="@color/color_7f7b81"
|
||||
android:textSize="@dimen/text_size_14"
|
||||
android:visibility="visible"
|
||||
tools:ignore="SpUsage" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/timeTv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/color_7f7b81"
|
||||
android:textSize="@dimen/text_size_12"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/avatarView"
|
||||
tools:ignore="MissingConstraints,SpUsage" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
157
chatkit-ui/src/main/res-fun/layout/fun_chat_setting_activity.xml
Normal file
@@ -0,0 +1,157 @@
|
||||
<?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/fun_chat_secondary_page_bg_color"
|
||||
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"
|
||||
android:background="@color/color_white"/>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingVertical="@dimen/dimen_16_dp"
|
||||
android:paddingHorizontal="@dimen/dimen_22_dp"
|
||||
android:layout_marginTop="@dimen/dimen_1_dp"
|
||||
android:background="@color/color_white">
|
||||
|
||||
<com.netease.yunxin.kit.common.ui.widgets.ContactAvatarView
|
||||
android:id="@+id/avatarView"
|
||||
android:layout_width="@dimen/dimen_50_dp"
|
||||
android:layout_height="@dimen/dimen_50_dp"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:avatarCorner="@dimen/dimen_4_dp"
|
||||
android:layout_marginTop="@dimen/dimen_6_dp"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/nameTv"
|
||||
android:layout_width="@dimen/dimen_50_dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dimen_6_dp"
|
||||
android:maxLines="1"
|
||||
android:ellipsize="end"
|
||||
android:gravity="center_horizontal"
|
||||
android:textSize="@dimen/text_size_12"
|
||||
android:textColor="@color/color_666666"
|
||||
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_50_dp"
|
||||
android:layout_height="@dimen/dimen_50_dp"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintLeft_toRightOf="@id/avatarView"
|
||||
android:src="@drawable/fun_ic_chat_setting_add"
|
||||
android:layout_marginTop="@dimen/dimen_6_dp"
|
||||
android:layout_marginStart="@dimen/dimen_16_dp" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingHorizontal="@dimen/dimen_16_dp"
|
||||
android:background="@color/color_white"
|
||||
android:layout_marginTop="@dimen/dimen_8_dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/pinLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_50_dp"
|
||||
android:visibility="visible">
|
||||
|
||||
<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="@dimen/dimen_50_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="@dimen/dimen_60_dp"
|
||||
android:layout_height="@dimen/dimen_20_dp"
|
||||
android:clickable="false"
|
||||
android:enabled="false"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:thumb="@drawable/fun_bg_switch_thumb_selector"
|
||||
app:track="@drawable/fun_bg_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="@dimen/dimen_50_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="@dimen/dimen_60_dp"
|
||||
android:layout_height="@dimen/dimen_20_dp"
|
||||
android:clickable="false"
|
||||
android:enabled="false"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:thumb="@drawable/fun_bg_switch_thumb_selector"
|
||||
app:track="@drawable/fun_bg_switch_track_selector" />
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -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>
|
||||
156
chatkit-ui/src/main/res-fun/layout/fun_chat_topview.xml
Normal file
@@ -0,0 +1,156 @@
|
||||
<?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="@dimen/dimen_60_dp"
|
||||
android:background="@android:color/white">
|
||||
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/ctlayout_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:visibility="visible"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_back"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingStart="@dimen/dimen_10_dp"
|
||||
android:paddingEnd="@dimen/dimen_10_dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:srcCompat="@drawable/ic_back" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_chattitle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_18"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toRightOf="@+id/iv_back"
|
||||
app:layout_constraintRight_toLeftOf="@+id/layout_chattitleright"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_chattitleright"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_chatsearch"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingStart="@dimen/dimen_15_dp"
|
||||
android:paddingEnd="@dimen/dimen_15_dp"
|
||||
android:visibility="visible"
|
||||
app:srcCompat="@drawable/ic_chat_titlesearch" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_chatcall"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingStart="@dimen/dimen_15_dp"
|
||||
android:paddingEnd="@dimen/dimen_15_dp"
|
||||
android:visibility="gone"
|
||||
app:srcCompat="@drawable/ic_chat_titlecall" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_chatannouncement"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingStart="@dimen/dimen_15_dp"
|
||||
android:paddingEnd="@dimen/dimen_15_dp"
|
||||
android:visibility="gone"
|
||||
app:srcCompat="@drawable/ic_chat_titleannouncement" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_chatsetting"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingStart="@dimen/dimen_15_dp"
|
||||
android:paddingEnd="@dimen/dimen_15_dp"
|
||||
app:srcCompat="@drawable/ic_chat_titlesetting" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/ctlayout_search"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/llchatview_searchtop"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/dimen_48_dp"
|
||||
android:layout_marginStart="@dimen/dimen_15_dp"
|
||||
android:layout_marginBottom="@dimen/dimen_2_dp"
|
||||
android:background="@drawable/bg_message_search_et"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@+id/view_clicksearchclose"
|
||||
app:layout_constraintStart_toStartOf="parent">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/edit_chatviewsearch"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="0.1"
|
||||
android:background="@android:color/transparent"
|
||||
android:drawableStart="@drawable/ic_chatview_search"
|
||||
android:drawablePadding="@dimen/dimen_5_dp"
|
||||
android:ellipsize="end"
|
||||
android:gravity="center_vertical"
|
||||
android:hint="@string/chat_search"
|
||||
android:imeOptions="actionSend"
|
||||
android:inputType="text"
|
||||
android:maxLength="2000"
|
||||
android:paddingStart="@dimen/dimen_15_dp"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textColorHint="@color/color_cccccc"
|
||||
android:textCursorDrawable="@drawable/cursor_color"
|
||||
android:textSize="@dimen/text_size_14" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/ic_chatviewclean"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_16_dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="0.9"
|
||||
android:visibility="gone"
|
||||
app:srcCompat="@drawable/fun_ic_chat_input_reply_close" />
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/llchatview_searchtop"
|
||||
app:layout_constraintLeft_toLeftOf="@+id/view_clicksearchclose"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@+id/llchatview_searchtop"
|
||||
app:srcCompat="@drawable/ic_chatview_searchclose" />
|
||||
|
||||
<View
|
||||
android:id="@+id/view_clicksearchclose"
|
||||
android:layout_width="@dimen/dimen_50_dp"
|
||||
android:layout_height="@dimen/dimen_48_dp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/llchatview_searchtop"
|
||||
app:layout_constraintEnd_toEndOf="parent" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
199
chatkit-ui/src/main/res-fun/layout/fun_chat_view.xml
Normal file
@@ -0,0 +1,199 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright (c) 2022 NetEase, Inc. All rights reserved.
|
||||
~ Use of this source code is governed by a MIT license that can be
|
||||
~ found in the LICENSE file.
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/titleLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.netease.yunxin.kit.common.ui.widgets.BackTitleBar
|
||||
android:id="@+id/titleBar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/inputTip"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal|bottom"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:background="@color/color_ededed"
|
||||
android:text="@string/chat_message_is_typing"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/dimen_9_dp"
|
||||
android:visibility="gone"
|
||||
tools:ignore="SpUsage" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0.25dp"
|
||||
android:layout_gravity="bottom"
|
||||
android:background="@color/color_fcfcfc" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/bodyTopLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/bodyLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:clipChildren="false">
|
||||
|
||||
<com.netease.yunxin.kit.chatkit.ui.view.message.ChatMessageListView
|
||||
android:id="@+id/messageView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:clipChildren="false"
|
||||
android:overScrollMode="never" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/notificationTextView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/color_white"
|
||||
android:gravity="center"
|
||||
android:paddingStart="@dimen/dimen_35_dp"
|
||||
android:paddingTop="@dimen/dimen_10_dp"
|
||||
android:paddingEnd="@dimen/dimen_5_dp"
|
||||
android:paddingBottom="@dimen/dimen_10_dp"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_10"
|
||||
android:visibility="gone"
|
||||
app:drawableStartCompat="@drawable/ic_error" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_newmessage"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right"
|
||||
android:layout_marginTop="@dimen/dimen_60_dp"
|
||||
android:layout_marginEnd="@dimen/dimen_15_dp"
|
||||
android:background="@drawable/bg_cornor_white_newmessage"
|
||||
android:drawableStart="@drawable/ic_chat_newmessage"
|
||||
android:gravity="center"
|
||||
android:paddingStart="@dimen/dimen_10_dp"
|
||||
android:paddingTop="@dimen/dimen_5_dp"
|
||||
android:paddingEnd="@dimen/dimen_10_dp"
|
||||
android:paddingBottom="@dimen/dimen_5_dp"
|
||||
android:textColor="@color/color_2cca29"
|
||||
android:textSize="@dimen/text_size_14"
|
||||
android:visibility="gone" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/bodyBottomLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/bottomLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.netease.yunxin.kit.chatkit.ui.fun.view.MessageBottomLayout
|
||||
android:id="@+id/inputView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/calendarViewLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@android:color/white"
|
||||
android:visibility="gone">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/ivCalendarView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/dimen_15_dp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/calendarViewClick"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@+id/calendarViewClick"
|
||||
app:srcCompat="@drawable/ic_chatview_calendar" />
|
||||
|
||||
<View
|
||||
android:id="@+id/calendarViewClick"
|
||||
android:layout_width="@dimen/dimen_55_dp"
|
||||
android:layout_height="@dimen/dimen_50_dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/calendarViewRoot"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintTop_toBottomOf="@+id/calendarViewClick">
|
||||
|
||||
<CalendarView
|
||||
android:id="@+id/calendarView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:theme="@style/Widget.CalendarView.Custom" />
|
||||
</FrameLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/chatMsgMultiSelectLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/color_white"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:visibility="gone">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_48_dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/chatMsgMultiCancel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@string/cancel"
|
||||
android:textSize="@dimen/text_size_16"
|
||||
android:textColor="@color/color_333333"
|
||||
android:gravity="center"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<View
|
||||
android:layout_width="@dimen/dimen_1_dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="@dimen/dimen_10_dp"
|
||||
android:background="#d8d8d8" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/chatMsgSingleForwardIv"
|
||||
android:text="@string/zhuanfa_text"
|
||||
android:textSize="@dimen/text_size_16"
|
||||
android:textColor="@color/color_333333"
|
||||
android:gravity="center"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</FrameLayout>
|
||||
</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. -->
|
||||
|
||||
<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="wrap_content"
|
||||
android:orientation="vertical"
|
||||
tools:ignore="MissingDefaultResource">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/action_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/fun_bg_shape_top_radius"
|
||||
android:orientation="vertical" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_6_dp"
|
||||
android:background="@color/fun_chat_secondary_page_bg_color"/>
|
||||
<TextView
|
||||
android:id="@+id/tvCancel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="72dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/cancel"
|
||||
android:textColor="@color/color_333333"
|
||||
android:background="@color/color_white"
|
||||
android:paddingBottom="@dimen/dimen_30_dp"
|
||||
android:textSize="@dimen/dimen_14_dp" />
|
||||
</LinearLayout>
|
||||
29
chatkit-ui/src/main/res-fun/layout/popwindow_view.xml
Normal file
@@ -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.
|
||||
-->
|
||||
|
||||
<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="70dp"
|
||||
android:layout_height="104dp"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center"
|
||||
android:background="@drawable/juxing_pop">
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dimen_48_dp"
|
||||
android:layout_height="@dimen/dimen_48_dp"
|
||||
android:id="@+id/item_iv"/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text=""
|
||||
android:id="@+id/item_tv"
|
||||
android:layout_marginTop="6dp"
|
||||
android:textColor="#ff333333"
|
||||
android:textSize="12sp"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
22
chatkit-ui/src/main/res-fun/layout/popwindow_view1.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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="156dp"
|
||||
android:layout_height="156dp"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center_horizontal"
|
||||
android:background="@drawable/juxing_pop1">
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dimen_120_dp"
|
||||
android:layout_height="@dimen/dimen_120_dp"
|
||||
android:layout_marginTop="@dimen/dimen_15_dp"
|
||||
android:id="@+id/item_iv"/>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
35
chatkit-ui/src/main/res-fun/values/colors.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="fun_chat_page_bg_color">#f7f7f7</color>
|
||||
<color name="fun_chat_secondary_page_bg_color">#ededed</color>
|
||||
|
||||
<!-- 会话页面 -->
|
||||
<color name="fun_chat_input_bg_color">#ffffff</color>
|
||||
<color name="fun_chat_input_reply_bg_color">#e1e1e1</color>
|
||||
<color name="fun_chat_input_reply_text_color">#666666</color>
|
||||
<color name="fun_chat_input_send_audio_color">#222222</color>
|
||||
<color name="fun_chat_input_audio_record_bg_color">#D9D9D9</color>
|
||||
<color name="fun_chat_input_audio_record_cancel_bg_color">#222222</color>
|
||||
<color name="fun_chat_input_audio_record_tips_color">#aaaaaa</color>
|
||||
<color name="fun_chat_message_revoked_tip_text_color">#AAAAAA</color>
|
||||
<color name="fun_chat_message_revoked_action_btn_text_color">#1861DF</color>
|
||||
<color name="fun_chat_message_replay_text_color">#E1E1E1</color>
|
||||
<color name="fun_chat_message_black_tip_text_color">#AAAAAA</color>
|
||||
|
||||
<!-- PIN页面 -->
|
||||
<color name="fun_chat_message_pin_bg_color">#FFF5DD</color>
|
||||
<color name="fun_chat_message_pin_view_holder_bg_color">#FFFFFF</color>
|
||||
|
||||
<!-- 历史记录搜索页面 -->
|
||||
<color name="fun_chat_search_empty_text_color">#AAAAAA</color>
|
||||
<color name="fun_chat_search_name_color">#737373</color>
|
||||
<color name="fun_chat_search_message_color">#333333</color>
|
||||
<color name="fun_chat_search_message_hit_color">#58BE6B</color>
|
||||
<color name="fun_chat_search_time_color">#cccccc</color>
|
||||
<color name="fun_chat_search_item_bg_color">#FFFFFF</color>
|
||||
|
||||
<!-- 消息阅读状态页面 -->
|
||||
<color name="fun_chat_read_title_color">#222222</color>
|
||||
<color name="fun_chat_read_name_color">#333333</color>
|
||||
<color name="fun_chat_read_selected_color">#58BE6B</color>
|
||||
</resources>
|
||||
5
chatkit-ui/src/main/res-fun/values/dimens.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="fun_chat_audio_record_animator_max_width">315</dimen>
|
||||
<dimen name="text_size_18">18sp</dimen>
|
||||
</resources>
|
||||