<?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"
    android:background="@drawable/main_bg"
    tools:context=".MainActivity">

    <ImageView
        android:id="@+id/iv_top_logo"
        android:layout_width="228dp"
        android:layout_height="28dp"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        android:layout_marginTop="30dp"
        android:layout_marginStart="20dp"
        android:background="@drawable/yunxin_logo" />


    <ImageView
        android:id="@+id/iv_account"
        android:layout_width="24dp"
        android:layout_height="24dp"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        android:layout_marginEnd="20dp"
        android:layout_marginTop="30dp"
        android:src="@drawable/account_circle" />

    <RelativeLayout
        android:id="@+id/rly_video_call"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:layout_constraintTop_toBottomOf="@+id/iv_top_logo"
        android:layout_margin="20dp"
        android:padding="20dp"
        android:background="@drawable/item_call_bg"
        app:layout_constraintLeft_toLeftOf="parent">

        <ImageView
            android:id="@+id/iv_call"
            android:layout_width="48dp"
            android:layout_height="48dp"
            android:src="@drawable/video_call_icon" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_toRightOf="@+id/iv_call"
            android:layout_centerVertical="true"
            android:layout_marginStart="14dp"
            android:text="@string/video_call"
            android:textColor="@color/colorWhite"
            android:textSize="18sp" />

        <ImageView
            android:layout_width="20dp"
            android:layout_height="20dp"
            android:layout_alignParentEnd="true"
            android:textColor="@color/colorWhite"
            android:layout_centerVertical="true"
            android:src="@drawable/light_right_arrow" />
    </RelativeLayout>

    <TextView
        android:id="@+id/tv_version"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintBottom_toTopOf="@+id/tv_comment"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        android:textColor="@color/colorWhite"
        android:gravity="center_horizontal"
        android:text="version"
        android:layout_marginBottom="15dp" />

    <TextView
        android:id="@+id/tv_comment"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        android:textColor="@color/colorWhite"
        android:text="本APP仅用于展示网易云信实时音视频各类功能"
        android:layout_marginBottom="50dp" />

    <Button
        android:id="@+id/btn"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        android:textSize="10dp"
        android:layout_marginBottom="200dp"
        android:text="开始dump，建议3分钟后点结束dump按钮"
        android:layout_width="match_parent"
        android:layout_height="44dp" />
    <Button
        android:id="@+id/btn2"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        android:textSize="10dp"
        android:text="结束dump，请到/sdcard/Android/data/com.netease.videocall.demo/files/dump目录查看dump文件"
        android:layout_marginBottom="150dp"
        android:layout_width="match_parent"
        android:layout_height="44dp" />
</androidx.constraintlayout.widget.ConstraintLayout>