update_layout_tips.xml 2.5 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"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@color/white">


    <TextView
        android:id="@+id/update_tips_title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="温馨提示"
        android:textColor="#333"
        android:textSize="16sp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <TextView
        android:id="@+id/update_tips_content"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="20dp"
        android:text="当前检测到最新版本,是否更新?"
        app:layout_constraintEnd_toEndOf="@+id/update_tips_title"
        app:layout_constraintStart_toStartOf="@+id/update_tips_title"
        app:layout_constraintTop_toBottomOf="@+id/update_tips_title" />

    <LinearLayout
        android:id="@+id/update_tips_line"
        android:layout_width="match_parent"
        android:layout_height="1px"
        android:layout_marginTop="30dp"
        android:background="#f3f3f3"
        android:orientation="horizontal"
        app:layout_constraintTop_toBottomOf="@+id/update_tips_content"
        tools:ignore="MissingConstraints" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="50dp"
        android:orientation="horizontal"
        app:layout_constraintTop_toBottomOf="@+id/update_tips_line">

        <TextView
            android:id="@+id/update_tips_cancel"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:background="@drawable/border_right"
            android:gravity="center"
            android:text="取消" />

        <TextView
            android:id="@+id/update_tips_ok"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:gravity="center"
            android:text="立即更新"
            android:textColor="#206CB3" />
    </LinearLayout>


</androidx.constraintlayout.widget.ConstraintLayout>