audioim_activity_audio_home.xml 16.7 KB
Newer Older
严久程 committed
1 2 3 4 5 6
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
霍志良 committed
7
    android:background="@drawable/audiohome_background">
8 9 10 11 12 13 14 15 16

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:layout_marginTop="44dp"
        android:layout_marginRight="@dimen/platform_dp_15"
        android:background="@drawable/audioim_border_white_kefu"
        android:gravity="center_vertical"
霍志良 committed
17
        android:visibility="gone"
18 19 20 21 22 23 24 25 26 27
        android:orientation="horizontal">

        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="8dp"
            android:layout_marginTop="5dp"
            android:layout_marginBottom="5dp"
            android:src="@drawable/audioim_kefu" />

霍志良 committed
28
        <TextView
29
            android:id="@+id/jump_kefu"
霍志良 committed
30 31
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
32 33 34 35
            android:layout_marginLeft="3dp"
            android:layout_marginTop="5dp"
            android:layout_marginRight="8dp"
            android:layout_marginBottom="5dp"
霍志良 committed
36
            android:text="联系客服"
37 38 39
            android:textColor="@color/white"
            android:textSize="13sp" />
    </LinearLayout>
严久程 committed
40

万齐军 committed
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/layoutQualityGroup"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginLeft="18dp"
        android:layout_marginTop="44dp"
        android:layout_marginRight="18dp"
        android:visibility="gone">

        <TextView
            android:id="@+id/tvDelay"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:drawableLeft="@drawable/ic_net_delay"
            android:drawablePadding="4dp"
            android:textColor="#99FFFFFF"
            android:textSize="13sp"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintHorizontal_chainStyle="spread_inside"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintRight_toLeftOf="@+id/tvDown"
            app:layout_constraintTop_toTopOf="parent"
            tools:text="12ms" />

        <TextView
            android:id="@+id/tvDown"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:drawableLeft="@drawable/ic_net_down"
            android:textColor="#99FFFFFF"
            android:drawablePadding="4dp"
            android:textSize="13sp"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintLeft_toRightOf="@+id/tvDelay"
            app:layout_constraintRight_toLeftOf="@+id/tvUp"
            app:layout_constraintTop_toTopOf="parent"
            tools:text="12ms" />

        <TextView
            android:id="@+id/tvUp"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:drawableLeft="@drawable/ic_net_up"
            android:textColor="#99FFFFFF"
            android:drawablePadding="4dp"
            android:textSize="13sp"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintLeft_toRightOf="@+id/tvDown"
            app:layout_constraintRight_toLeftOf="@+id/layoutQuality"
            app:layout_constraintTop_toTopOf="parent"
            tools:text="12ms" />

        <LinearLayout
            android:id="@+id/layoutQuality"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:layout_constraintTop_toTopOf="parent"
            app:layout_constraintBottom_toBottomOf="parent"
            android:orientation="horizontal"
            android:gravity="center"
            app:layout_constraintLeft_toRightOf="@+id/tvUp"
            app:layout_constraintRight_toRightOf="parent">
            <ImageView
                android:id="@+id/ivQuality"
                tools:src="@drawable/audioim_bg_net_excellent"
                android:layout_width="6dp"
                android:layout_height="6dp"/>

            <TextView
                android:id="@+id/tvQuality"
                android:layout_width="wrap_content"
                android:layout_marginLeft="4dp"
                android:layout_height="wrap_content"
                android:textColor="#99FFFFFF"
                android:textSize="13sp"
                tools:text="12ms" />
        </LinearLayout>

    </androidx.constraintlayout.widget.ConstraintLayout>
严久程 committed
120 121 122 123

    <RelativeLayout
        android:id="@+id/rl_head"
        android:layout_width="250dp"
124
        android:layout_height="270dp"
严久程 committed
125
        android:layout_centerHorizontal="true"
严久程 committed
126
        android:layout_marginTop="60dp">
严久程 committed
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145

        <com.ydl.ydlcommon.view.WaveView
            android:id="@+id/wave_view"
            android:layout_width="250dp"
            android:layout_height="250dp"
            android:layout_centerInParent="true" />

        <ImageView
            android:layout_width="126dp"
            android:layout_height="126dp"
            android:layout_centerInParent="true"
            android:background="@drawable/audioim_head_background" />

        <ImageView
            android:id="@+id/iv_head"
            android:layout_width="120dp"
            android:layout_height="120dp"
            android:layout_centerInParent="true"
            android:scaleType="centerCrop"
146 147
            android:src="@drawable/audioim_head_place_hold_pic" />

霍志良 committed
148 149 150 151 152 153 154 155 156 157
        <TextView
            android:id="@+id/tv_name"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/iv_head"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="@dimen/platform_dp_12"
            android:textColor="@color/white"
            android:textSize="22sp"
            tools:text="留意" />
严久程 committed
158

159 160 161 162 163 164 165 166 167 168 169 170
        <TextView
            android:id="@+id/tv_tips"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/tv_name"
            android:layout_centerHorizontal="true"
            android:layout_marginLeft="25dp"
            android:layout_marginTop="@dimen/platform_dp_10"
            android:layout_marginRight="25dp"
            android:ellipsize="end"
            android:gravity="center"
            android:maxLines="2"
171
            android:text="正在等待聆听者接受邀请…"
172
            android:textColor="@color/platform_color_70FFFFFF"
173
            android:textSize="12sp" />
174

严久程 committed
175 176
    </RelativeLayout>
    <!-- 倾诉剩余时间-->
YKai committed
177
    <androidx.constraintlayout.widget.ConstraintLayout
严久程 committed
178 179 180
        android:id="@+id/rl_remain_time"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
霍志良 committed
181
        android:layout_below="@+id/rl_head"
严久程 committed
182 183
        android:visibility="gone"
        tools:visibility="visible">
184

严久程 committed
185 186 187 188
        <TextView
            android:id="@+id/tv_notes"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
189
            android:text="剩余时长:"
严久程 committed
190
            android:textColor="@color/white"
霍志良 committed
191
            android:textSize="18sp"
严久程 committed
192 193 194 195
            app:layout_constraintEnd_toStartOf="@+id/tv_remain_time"
            app:layout_constraintHorizontal_chainStyle="packed"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent" />
严久程 committed
196 197 198 199 200

        <TextView
            android:id="@+id/tv_remain_time"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
严久程 committed
201 202
            android:layout_marginStart="11dp"
            android:layout_toRightOf="@+id/tv_notes"
严久程 committed
203 204
            android:text="23:23"
            android:textColor="@color/white"
霍志良 committed
205
            android:textSize="18sp"
严久程 committed
206 207 208 209 210
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toEndOf="@+id/tv_notes"
            app:layout_constraintTop_toTopOf="parent" />

        <TextView
211
            android:id="@+id/tv_totalDuration"
严久程 committed
212 213 214
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/tv_notes"
霍志良 committed
215 216 217 218
            android:layout_marginTop="4dp"
            android:text="(满25分钟自动挂断,限24小时内拨打)"
            android:textColor="#60ffffff"
            android:textSize="16sp"
严久程 committed
219 220 221
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/tv_remain_time" />
YKai committed
222
    </androidx.constraintlayout.widget.ConstraintLayout>
严久程 committed
223

霍志良 committed
224 225

    <TextView
226
        android:id="@+id/tv_tips1"
霍志良 committed
227 228 229 230 231 232 233 234 235 236 237
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/rl_remain_time"
        android:layout_centerHorizontal="true"
        android:layout_marginLeft="25dp"
        android:layout_marginTop="@dimen/platform_dp_10"
        android:layout_marginRight="25dp"
        android:ellipsize="end"
        android:gravity="center"
        android:maxLines="2"
        android:textColor="@color/white"
238
        android:textSize="15sp" />
霍志良 committed
239 240


严久程 committed
241 242 243 244
    <TextView
        android:id="@+id/tv_change_doctor"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
霍志良 committed
245
        android:layout_above="@id/ll_three_icon"
严久程 committed
246 247 248 249 250 251 252 253 254 255 256
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="48dp"
        android:gravity="center"
        android:text="聆听者长时间未接听,\n您可以点击右上角切换线路,或者挂断换一位"
        android:textColor="@color/white"
        android:visibility="gone" />

    <TextView
        android:id="@+id/tv_waiting"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
霍志良 committed
257
        android:layout_above="@+id/ll_three_icon"
严久程 committed
258 259 260 261 262
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="50dp"
        android:text="正在等待聆听者接受邀请…"
        android:textColor="@color/platform_color_70FFFFFF"
        android:textSize="12sp"
263
        android:visibility="gone"
严久程 committed
264
        tools:visibility="gone" />
265

霍志良 committed
266
    <LinearLayout
267
        android:id="@+id/ll_changeRoute"
霍志良 committed
268 269 270
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_above="@id/ll_three_icon"
271
        android:layout_centerHorizontal="true"
霍志良 committed
272
        android:layout_marginBottom="@dimen/platform_dp_88"
273 274 275
        android:gravity="center"
        android:orientation="vertical">

霍志良 committed
276
        <ImageView
277
            android:id="@+id/iv_change_route"
霍志良 committed
278 279
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
280 281
            android:src="@drawable/iv_change_route"></ImageView>

霍志良 committed
282 283 284 285 286 287 288 289 290 291 292
        <TextView
            android:id="@+id/tv_change_time_counter"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignBaseline="@+id/tv_change_route"
            android:layout_toLeftOf="@+id/tv_change_route"
            android:textColor="#60ffffff"
            android:textSize="15dp"
            tools:text="转传统电话(60s)" />

    </LinearLayout>
严久程 committed
293

霍志良 committed
294 295 296
    <LinearLayout
        android:id="@+id/ll_three_icon"
        android:layout_width="match_parent"
严久程 committed
297 298
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
霍志良 committed
299 300 301
        android:layout_marginBottom="@dimen/platform_dp_18"
        android:orientation="horizontal">
        <!--静音按钮-->
霍志良 committed
302
        <LinearLayout
霍志良 committed
303
            android:id="@+id/rl_mute_on_off"
霍志良 committed
304
            android:layout_width="0dp"
霍志良 committed
305
            android:layout_height="wrap_content"
306
            android:layout_weight="1"
霍志良 committed
307
            android:gravity="center"
308
            android:orientation="vertical">
严久程 committed
309

霍志良 committed
310 311 312 313 314
            <ImageView
                android:id="@+id/iv_mute_on_off"
                android:layout_width="66dp"
                android:layout_height="66dp"
                android:layout_marginTop="1dp"
315
                android:src="@drawable/audioim_home_muteon_enable"
霍志良 committed
316
                android:visibility="visible" />
严久程 committed
317

霍志良 committed
318 319 320 321 322 323 324 325
            <TextView
                android:id="@+id/audio_mute_text"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="8dp"
                android:text="麦克风已开"
                android:textColor="@color/white"
                android:textSize="12sp" />
严久程 committed
326

霍志良 committed
327
        </LinearLayout>
霍志良 committed
328
        <!--挂断按钮-->
霍志良 committed
329
        <LinearLayout
霍志良 committed
330 331
            android:id="@+id/rl_hang_up"
            android:layout_width="0dp"
332
            android:layout_height="wrap_content"
霍志良 committed
333 334
            android:layout_weight="1"
            android:gravity="center"
335
            android:orientation="vertical">
严久程 committed
336

霍志良 committed
337 338 339
            <FrameLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content">
340

霍志良 committed
341 342 343 344 345 346 347 348
                <ImageView
                    android:id="@+id/iv_hang_up"
                    android:layout_width="66dp"
                    android:layout_height="66dp"
                    android:layout_centerHorizontal="true"
                    android:layout_marginTop="1dp"
                    android:src="@drawable/audioim_img_hang_up_unuse"
                    android:visibility="visible" />
349

霍志良 committed
350 351 352 353 354 355 356
                <com.ydl.ydlcommon.view.ProgressView
                    android:id="@+id/progress_view"
                    android:layout_width="70dp"
                    android:layout_height="70dp"
                    app:pa_progressBackColor="#45E6AB"
                    app:pa_progressWidth="4dp" />
            </FrameLayout>
357

霍志良 committed
358 359 360 361 362 363 364 365 366 367
            <TextView
                android:id="@+id/audio_hangup_text"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@+id/iv_hang_up"
                android:layout_centerHorizontal="true"
                android:layout_marginTop="8dp"
                android:text="挂断"
                android:textColor="@color/white"
                android:textSize="12sp" />
霍志良 committed
368
        </LinearLayout>
严久程 committed
369

霍志良 committed
370
        <!-- 免提按钮-->
霍志良 committed
371
        <LinearLayout
霍志良 committed
372 373
            android:layout_width="0dp"
            android:layout_height="wrap_content"
374
            android:layout_weight="1"
霍志良 committed
375
            android:gravity="center"
376
            android:orientation="vertical">
严久程 committed
377

霍志良 committed
378 379 380 381 382 383 384
            <ImageView
                android:id="@+id/iv_hands_free"
                android:layout_width="66dp"
                android:layout_height="66dp"
                android:src="@drawable/audioim_img_hands_free_unuse" />

            <TextView
385
                android:id="@+id/hands_free_text"
霍志良 committed
386 387 388 389
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@+id/iv_hands_free"
                android:layout_marginTop="8dp"
390
                android:text="扬声器已关"
霍志良 committed
391 392
                android:textColor="@color/white"
                android:textSize="12sp" />
霍志良 committed
393
        </LinearLayout>
霍志良 committed
394
    </LinearLayout>
严久程 committed
395 396 397 398 399 400 401


    <!--自定义弹窗-->
    <TextView
        android:id="@+id/tv_toast"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
402
        android:layout_below="@+id/tv_tips1"
严久程 committed
403 404 405 406 407 408 409 410 411 412 413
        android:layout_centerHorizontal="true"
        android:layout_marginTop="34dp"
        android:background="@drawable/audioim_toast_view_background"
        android:elevation="6dp"
        android:paddingLeft="11dp"
        android:paddingTop="4dp"
        android:paddingRight="11dp"
        android:paddingBottom="4dp"
        android:textColor="@color/white"
        android:visibility="gone"
        tools:text="已接通"
严久程 committed
414 415 416 417 418 419 420
        tools:visibility="visible" />


    <TextView
        android:id="@+id/tv_nte_status"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
421
        android:layout_below="@+id/tv_tips1"
严久程 committed
422 423 424 425 426 427 428 429 430 431 432 433 434
        android:layout_centerHorizontal="true"
        android:layout_marginTop="70dp"
        android:background="@drawable/audioim_toast_view_background"
        android:drawableLeft="@drawable/av_audio_wifi_better"
        android:elevation="6dp"
        android:paddingLeft="11dp"
        android:paddingTop="4dp"
        android:paddingRight="11dp"
        android:paddingBottom="4dp"
        android:textColor="@color/white"
        android:visibility="gone"
        tools:text="对方的网络状况不佳"
        tools:visibility="visible" />
严久程 committed
435 436

</RelativeLayout>