dialog_command.xml 4.32 KB
<?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"
    android:id="@+id/clRoot"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/clContent"
        android:layout_width="@dimen/rmrb_dp270"
        android:layout_height="wrap_content"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        android:layout_marginTop="@dimen/rmrb_dp62">

        <!--    提示和提示内容-->
        <androidx.constraintlayout.widget.ConstraintLayout
            android:id="@+id/clTop"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/rmrb_dp126"
            android:background="@drawable/bg_command_gradient_top_fff8e5_ffffff_10"
            app:layout_constraintTop_toTopOf="parent">

            <TextView
                android:id="@+id/tvTitle"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/rmrb_dp40"
                android:gravity="center"
                android:text="提示"
                android:textColor="#FF333333"
                android:textSize="@dimen/rmrb_dp18"
                app:layout_constraintTop_toTopOf="parent" />

            <TextView
                android:id="@+id/tvContent"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginHorizontal="@dimen/rmrb_dp20"
                android:layout_marginTop="@dimen/rmrb_dp8"
                android:layout_marginBottom="@dimen/rmrb_dp25"
                android:text="你已被成功邀请,马上登录你和好友都能获得10积分"
                android:textColor="#FF222222"
                android:textSize="@dimen/rmrb_dp16"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintTop_toBottomOf="@+id/tvTitle" />

        </androidx.constraintlayout.widget.ConstraintLayout>

        <View
            android:id="@+id/vLine"
            android:layout_width="match_parent"
            android:layout_height="0.5dp"
            android:background="#F5F5F5"
            app:layout_constraintTop_toBottomOf="@+id/clTop" />

        <!--    去登录-->
        <androidx.constraintlayout.widget.ConstraintLayout
            android:id="@+id/clBottom"
            android:layout_width="match_parent"
            android:layout_height="@dimen/rmrb_dp48"
            android:background="@drawable/bg_command_bottom_ffffff_10"
            app:layout_constraintTop_toBottomOf="@+id/vLine">

            <TextView
                android:id="@+id/tvGo"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:gravity="center"
                android:text="去登录"
                android:textColor="#FFED2800"
                android:textSize="@dimen/rmrb_dp16" />

        </androidx.constraintlayout.widget.ConstraintLayout>

        <!--    logo-->
        <com.airbnb.lottie.LottieAnimationView
            android:id="@+id/lavLogo"
            android:layout_width="@dimen/rmrb_dp150"
            android:layout_height="@dimen/rmrb_dp175"
            app:lottie_autoPlay="false"
            app:lottie_loop="false"
            android:scaleType="centerCrop"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintRight_toRightOf="parent"
            app:layout_constraintTop_toTopOf="parent" />

    </androidx.constraintlayout.widget.ConstraintLayout>

    <ImageView
        android:id="@+id/ivClose"
        android:layout_width="@dimen/rmrb_dp32"
        android:layout_height="@dimen/rmrb_dp32"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/clContent"
        android:layout_marginTop="@dimen/rmrb_dp24"
        android:src="@mipmap/ic_command_close"
        />

</androidx.constraintlayout.widget.ConstraintLayout>