audioim_activity_audio_home.xml 12.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 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
    android:background="@drawable/audiohome_background">
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textSize="13sp"
            android:textColor="@color/white"
            android:text="联系客服"
            android:id="@+id/jump_kefu"
            android:drawableLeft="@drawable/audioim_kefu"
            android:layout_alignParentRight="true"
            android:layout_marginTop="44dp"
            android:layout_marginRight="@dimen/platform_dp_15"
            android:drawablePadding="@dimen/platform_dp_3"
            android:background="@drawable/audio_border_white_kefu"
            android:paddingTop="@dimen/platform_dp_5"
            android:paddingBottom="@dimen/platform_dp_5"
            android:paddingStart="@dimen/platform_dp_8"
            android:paddingEnd="@dimen/platform_dp_8"
            >
严久程 committed
26

霍志良 committed
27
        </TextView>
严久程 committed
28

严久程 committed
29 30 31 32 33 34

    <RelativeLayout
        android:id="@+id/rl_head"
        android:layout_width="250dp"
        android:layout_height="250dp"
        android:layout_centerHorizontal="true"
严久程 committed
35
        android:layout_marginTop="60dp">
严久程 committed
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54

        <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"
霍志良 committed
55 56 57 58 59 60 61 62 63 64 65 66
            android:src="@drawable/audioim_head_place_hold_pic"
            />
        <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
67 68 69

    </RelativeLayout>
    <!-- 倾诉剩余时间-->
YKai committed
70
    <androidx.constraintlayout.widget.ConstraintLayout
严久程 committed
71 72 73
        android:id="@+id/rl_remain_time"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
霍志良 committed
74
        android:layout_below="@+id/rl_head"
严久程 committed
75 76
        android:visibility="gone"
        tools:visibility="visible">
严久程 committed
77 78 79 80
        <TextView
            android:id="@+id/tv_notes"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
霍志良 committed
81
            android:text="已通话时长"
严久程 committed
82
            android:textColor="@color/white"
霍志良 committed
83
            android:textSize="18sp"
严久程 committed
84 85 86 87
            app:layout_constraintEnd_toStartOf="@+id/tv_remain_time"
            app:layout_constraintHorizontal_chainStyle="packed"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent" />
严久程 committed
88 89 90 91 92

        <TextView
            android:id="@+id/tv_remain_time"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
严久程 committed
93 94
            android:layout_marginStart="11dp"
            android:layout_toRightOf="@+id/tv_notes"
严久程 committed
95 96
            android:text="23:23"
            android:textColor="@color/white"
霍志良 committed
97
            android:textSize="18sp"
严久程 committed
98 99 100 101 102 103 104 105
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toEndOf="@+id/tv_notes"
            app:layout_constraintTop_toTopOf="parent" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/tv_notes"
霍志良 committed
106 107 108 109
            android:layout_marginTop="4dp"
            android:text="(满25分钟自动挂断,限24小时内拨打)"
            android:textColor="#60ffffff"
            android:textSize="16sp"
严久程 committed
110 111 112
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/tv_remain_time" />
YKai committed
113
    </androidx.constraintlayout.widget.ConstraintLayout>
严久程 committed
114

霍志良 committed
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133

    <TextView
        android:id="@+id/tv_tips"
        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"
        android:textSize="15sp"
        tools:text="你存在的本身就是值得被爱的你存在的本身就是值得被爱的" />



严久程 committed
134 135 136 137
    <TextView
        android:id="@+id/tv_change_doctor"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
霍志良 committed
138
        android:layout_above="@id/ll_three_icon"
严久程 committed
139 140 141 142 143 144 145 146 147 148 149
        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
150
        android:layout_above="@+id/ll_three_icon"
严久程 committed
151 152 153 154 155
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="50dp"
        android:text="正在等待聆听者接受邀请…"
        android:textColor="@color/platform_color_70FFFFFF"
        android:textSize="12sp"
严久程 committed
156 157
        android:visibility="visible"
        tools:visibility="gone" />
霍志良 committed
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185
    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_above="@id/ll_three_icon"
        android:gravity="center"
        android:orientation="vertical"
        android:id="@+id/ll_changeRoute"
        android:layout_marginBottom="@dimen/platform_dp_88"
        >
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/iv_change_route"
            android:id="@+id/iv_change_route"
            >
        </ImageView>
        <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
186

霍志良 committed
187 188 189
    <LinearLayout
        android:id="@+id/ll_three_icon"
        android:layout_width="match_parent"
严久程 committed
190 191
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
霍志良 committed
192 193 194
        android:layout_marginBottom="@dimen/platform_dp_18"
        android:orientation="horizontal">
        <!--静音按钮-->
霍志良 committed
195
        <LinearLayout
霍志良 committed
196
            android:id="@+id/rl_mute_on_off"
霍志良 committed
197 198
            android:layout_width="0dp"
            android:layout_weight="1"
霍志良 committed
199
            android:layout_height="wrap_content"
霍志良 committed
200 201 202
            android:orientation="vertical"
            android:gravity="center"
            >
严久程 committed
203

霍志良 committed
204 205 206 207 208
            <ImageView
                android:id="@+id/iv_mute_on_off"
                android:layout_width="66dp"
                android:layout_height="66dp"
                android:layout_marginTop="1dp"
霍志良 committed
209
                android:src="@drawable/audiohome_muteon"
霍志良 committed
210
                android:visibility="visible" />
严久程 committed
211

霍志良 committed
212 213 214 215 216 217 218 219
            <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
220

霍志良 committed
221
        </LinearLayout>
霍志良 committed
222
        <!--挂断按钮-->
霍志良 committed
223
        <LinearLayout
霍志良 committed
224 225 226 227
            android:id="@+id/rl_hang_up"
            android:layout_width="0dp"
            android:layout_weight="1"
            android:gravity="center"
霍志良 committed
228
            android:orientation="vertical"
霍志良 committed
229
            android:layout_height="wrap_content">
严久程 committed
230

霍志良 committed
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248
            <FrameLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content">
                <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" />
                <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>
霍志良 committed
249 250 251 252 253 254 255 256 257 258
            <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
259
        </LinearLayout>
严久程 committed
260

霍志良 committed
261
        <!-- 免提按钮-->
霍志良 committed
262
        <LinearLayout
霍志良 committed
263 264 265
            android:layout_width="0dp"
            android:layout_weight="1"
            android:layout_height="wrap_content"
霍志良 committed
266 267 268
            android:orientation="vertical"
            android:gravity="center"
         >
严久程 committed
269

霍志良 committed
270 271 272 273 274 275 276 277 278 279 280 281 282 283
            <ImageView
                android:id="@+id/iv_hands_free"
                android:layout_width="66dp"
                android:layout_height="66dp"
                android:src="@drawable/audioim_img_hands_free_unuse" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@+id/iv_hands_free"
                android:layout_marginTop="8dp"
                android:text="免提"
                android:textColor="@color/white"
                android:textSize="12sp" />
霍志良 committed
284
        </LinearLayout>
霍志良 committed
285
    </LinearLayout>
严久程 committed
286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304


    <!--自定义弹窗-->
    <TextView
        android:id="@+id/tv_toast"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/tv_tips"
        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
305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325
        tools:visibility="visible" />


    <TextView
        android:id="@+id/tv_nte_status"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/tv_tips"
        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
326 327

</RelativeLayout>