audioim_activity_audio_home.xml 13.4 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

    <RelativeLayout
        android:id="@+id/rl_head"
        android:layout_width="250dp"
45
        android:layout_height="270dp"
严久程 committed
46
        android:layout_centerHorizontal="true"
严久程 committed
47
        android:layout_marginTop="60dp">
严久程 committed
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66

        <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"
67 68
            android:src="@drawable/audioim_head_place_hold_pic" />

霍志良 committed
69 70 71 72 73 74 75 76 77 78
        <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
79

80 81 82 83 84 85 86 87 88 89 90 91
        <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"
92
            android:text="正在等待聆听者接受邀请…"
93
            android:textColor="@color/platform_color_70FFFFFF"
94
            android:textSize="12sp" />
95

严久程 committed
96 97
    </RelativeLayout>
    <!-- 倾诉剩余时间-->
YKai committed
98
    <androidx.constraintlayout.widget.ConstraintLayout
严久程 committed
99 100 101
        android:id="@+id/rl_remain_time"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
霍志良 committed
102
        android:layout_below="@+id/rl_head"
严久程 committed
103 104
        android:visibility="gone"
        tools:visibility="visible">
105

严久程 committed
106 107 108 109
        <TextView
            android:id="@+id/tv_notes"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
110
            android:text="剩余时长:"
严久程 committed
111
            android:textColor="@color/white"
霍志良 committed
112
            android:textSize="18sp"
严久程 committed
113 114 115 116
            app:layout_constraintEnd_toStartOf="@+id/tv_remain_time"
            app:layout_constraintHorizontal_chainStyle="packed"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent" />
严久程 committed
117 118 119 120 121

        <TextView
            android:id="@+id/tv_remain_time"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
严久程 committed
122 123
            android:layout_marginStart="11dp"
            android:layout_toRightOf="@+id/tv_notes"
严久程 committed
124 125
            android:text="23:23"
            android:textColor="@color/white"
霍志良 committed
126
            android:textSize="18sp"
严久程 committed
127 128 129 130 131
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toEndOf="@+id/tv_notes"
            app:layout_constraintTop_toTopOf="parent" />

        <TextView
132
            android:id="@+id/tv_totalDuration"
严久程 committed
133 134 135
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/tv_notes"
霍志良 committed
136 137 138 139
            android:layout_marginTop="4dp"
            android:text="(满25分钟自动挂断,限24小时内拨打)"
            android:textColor="#60ffffff"
            android:textSize="16sp"
严久程 committed
140 141 142
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/tv_remain_time" />
YKai committed
143
    </androidx.constraintlayout.widget.ConstraintLayout>
严久程 committed
144

霍志良 committed
145 146

    <TextView
147
        android:id="@+id/tv_tips1"
霍志良 committed
148 149 150 151 152 153 154 155 156 157 158
        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"
159
        android:textSize="15sp" />
霍志良 committed
160 161


严久程 committed
162 163 164 165
    <TextView
        android:id="@+id/tv_change_doctor"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
霍志良 committed
166
        android:layout_above="@id/ll_three_icon"
严久程 committed
167 168 169 170 171 172 173 174 175 176 177
        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
178
        android:layout_above="@+id/ll_three_icon"
严久程 committed
179 180 181 182 183
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="50dp"
        android:text="正在等待聆听者接受邀请…"
        android:textColor="@color/platform_color_70FFFFFF"
        android:textSize="12sp"
184
        android:visibility="gone"
严久程 committed
185
        tools:visibility="gone" />
186

霍志良 committed
187
    <LinearLayout
188
        android:id="@+id/ll_changeRoute"
霍志良 committed
189 190 191
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_above="@id/ll_three_icon"
192
        android:layout_centerHorizontal="true"
霍志良 committed
193
        android:layout_marginBottom="@dimen/platform_dp_88"
194 195 196
        android:gravity="center"
        android:orientation="vertical">

霍志良 committed
197
        <ImageView
198
            android:id="@+id/iv_change_route"
霍志良 committed
199 200
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
201 202
            android:src="@drawable/iv_change_route"></ImageView>

霍志良 committed
203 204 205 206 207 208 209 210 211 212 213
        <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
214

霍志良 committed
215 216 217
    <LinearLayout
        android:id="@+id/ll_three_icon"
        android:layout_width="match_parent"
严久程 committed
218 219
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
霍志良 committed
220 221 222
        android:layout_marginBottom="@dimen/platform_dp_18"
        android:orientation="horizontal">
        <!--静音按钮-->
霍志良 committed
223
        <LinearLayout
霍志良 committed
224
            android:id="@+id/rl_mute_on_off"
霍志良 committed
225
            android:layout_width="0dp"
霍志良 committed
226
            android:layout_height="wrap_content"
227
            android:layout_weight="1"
霍志良 committed
228
            android:gravity="center"
229
            android:orientation="vertical">
严久程 committed
230

霍志良 committed
231 232 233 234 235
            <ImageView
                android:id="@+id/iv_mute_on_off"
                android:layout_width="66dp"
                android:layout_height="66dp"
                android:layout_marginTop="1dp"
236
                android:src="@drawable/audioim_home_muteon_enable"
霍志良 committed
237
                android:visibility="visible" />
严久程 committed
238

霍志良 committed
239 240 241 242 243 244 245 246
            <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
247

霍志良 committed
248
        </LinearLayout>
霍志良 committed
249
        <!--挂断按钮-->
霍志良 committed
250
        <LinearLayout
霍志良 committed
251 252
            android:id="@+id/rl_hang_up"
            android:layout_width="0dp"
253
            android:layout_height="wrap_content"
霍志良 committed
254 255
            android:layout_weight="1"
            android:gravity="center"
256
            android:orientation="vertical">
严久程 committed
257

霍志良 committed
258 259 260
            <FrameLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content">
261

霍志良 committed
262 263 264 265 266 267 268 269
                <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" />
270

霍志良 committed
271 272 273 274 275 276 277
                <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>
278

霍志良 committed
279 280 281 282 283 284 285 286 287 288
            <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
289
        </LinearLayout>
严久程 committed
290

霍志良 committed
291
        <!-- 免提按钮-->
霍志良 committed
292
        <LinearLayout
霍志良 committed
293 294
            android:layout_width="0dp"
            android:layout_height="wrap_content"
295
            android:layout_weight="1"
霍志良 committed
296
            android:gravity="center"
297
            android:orientation="vertical">
严久程 committed
298

霍志良 committed
299 300 301 302 303 304 305
            <ImageView
                android:id="@+id/iv_hands_free"
                android:layout_width="66dp"
                android:layout_height="66dp"
                android:src="@drawable/audioim_img_hands_free_unuse" />

            <TextView
306
                android:id="@+id/hands_free_text"
霍志良 committed
307 308 309 310
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@+id/iv_hands_free"
                android:layout_marginTop="8dp"
311
                android:text="扬声器已关"
霍志良 committed
312 313
                android:textColor="@color/white"
                android:textSize="12sp" />
霍志良 committed
314
        </LinearLayout>
霍志良 committed
315
    </LinearLayout>
严久程 committed
316 317 318 319 320 321 322


    <!--自定义弹窗-->
    <TextView
        android:id="@+id/tv_toast"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
323
        android:layout_below="@+id/tv_tips1"
严久程 committed
324 325 326 327 328 329 330 331 332 333 334
        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
335 336 337 338 339 340 341
        tools:visibility="visible" />


    <TextView
        android:id="@+id/tv_nte_status"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
342
        android:layout_below="@+id/tv_tips1"
严久程 committed
343 344 345 346 347 348 349 350 351 352 353 354 355
        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
356 357

</RelativeLayout>