audioim_cativity_consultant_audio_home.xml 7.69 KB
Newer Older
严久程 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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/platform_color_80353535">


    <RelativeLayout
        android:id="@+id/rl_head"
        android:layout_width="250dp"
        android:layout_height="250dp"
        android:layout_centerHorizontal="true"
        android:layout_marginTop="74dp">

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


    </RelativeLayout>


    <TextView
        android:id="@+id/tv_name"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/rl_head"
        android:layout_centerHorizontal="true"
        android:layout_marginTop="-20dp"
        android:textColor="@color/white"
        android:textSize="26sp"
        tools:text="用户" />
严久程 committed
50

严久程 committed
51 52 53 54 55 56 57 58 59 60 61 62
    <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="6dp"
        android:layout_marginRight="25dp"
        android:ellipsize="end"
        android:gravity="center"
        android:maxLines="2"
严久程 committed
63
        android:text="向您发起语音通话请求"
严久程 committed
64
        android:textColor="@color/white"
严久程 committed
65
        android:textSize="15sp" />
严久程 committed
66 67 68 69 70 71 72


    <!--自定义弹窗-->
    <TextView
        android:id="@+id/tv_toast"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
严久程 committed
73
        android:layout_below="@+id/tv_tips"
严久程 committed
74 75 76 77 78 79 80 81 82 83 84 85 86
        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="连接中..."
        tools:visibility="visible" />

严久程 committed
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106

    <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
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
    <!-- 倾诉剩余时间-->
    <RelativeLayout
        android:id="@+id/rl_remain_time"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_above="@+id/rl_hang_up"
        android:layout_marginBottom="20dp"
        android:visibility="gone"
        tools:visibility="visible">

        <TextView
            android:id="@+id/tv_notes"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true"
严久程 committed
122
            android:text="通话时长"
严久程 committed
123 124 125 126 127 128 129 130 131
            android:textColor="@color/platform_color_30FFFFFF"
            android:textSize="12sp" />

        <TextView
            android:id="@+id/tv_remain_time"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/tv_notes"
            android:layout_centerHorizontal="true"
严久程 committed
132
            android:text="00:00"
严久程 committed
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 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 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
            android:textColor="@color/white"
            android:textSize="20sp" />
    </RelativeLayout>


    <!--挂断按钮-->
    <RelativeLayout
        android:id="@+id/rl_hang_up"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_marginLeft="72dp"
        android:layout_marginBottom="18dp"
        android:onClick="hangUpClick">

        <ImageView
            android:id="@+id/iv_hang_up"
            android:layout_width="66dp"
            android:layout_height="66dp"
            android:layout_centerHorizontal="true"
            android:src="@drawable/audioim_img_hang_up"
            android:visibility="visible" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/iv_hang_up"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="9dp"
            android:text="挂断"
            android:textColor="@color/white"
            android:textSize="12sp" />

    </RelativeLayout>

    <!-- 接听按钮-->
    <RelativeLayout
        android:id="@+id/rl_call"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:layout_alignParentBottom="true"
        android:layout_marginRight="72dp"
        android:layout_marginBottom="18dp"
        android:onClick="onCall">

        <ImageView
            android:id="@+id/iv_hands_call"
            android:layout_width="66dp"
            android:layout_height="66dp"
            android:src="@drawable/audioim_audio_home_img_answer" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/iv_hands_call"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="9dp"
            android:text="接听"
            android:textColor="@color/white"
            android:textSize="12sp" />
    </RelativeLayout>

    <!-- 免提按钮-->
    <RelativeLayout
        android:id="@+id/rl_hands_free"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:layout_alignParentBottom="true"
        android:layout_marginRight="72dp"
        android:layout_marginBottom="18dp"
        android:onClick="onSwitchSpeakerphoneClicked"
        android:visibility="gone">

        <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_centerHorizontal="true"
            android:layout_marginTop="9dp"
            android:text="免提"
            android:textColor="@color/white"
            android:textSize="12sp" />
    </RelativeLayout>

</RelativeLayout>