<?xml version="1.0" encoding="utf-8"?>
|
<androidx.cardview.widget.CardView 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="260dp"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center"
|
app:cardBackgroundColor="@color/white"
|
app:cardCornerRadius="5dp"
|
app:cardElevation="0px"
|
>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical">
|
|
<FrameLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
|
<androidx.appcompat.widget.AppCompatImageView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@drawable/update_app_top_bg"
|
/>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center"
|
android:layout_marginHorizontal="30dp"
|
android:layout_marginBottom="5dp"
|
android:orientation="vertical">
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="发现新版本"
|
android:textColor="@color/white"
|
android:textSize="22sp" />
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:id="@+id/tv_update_name"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:layout_marginTop="5dp"
|
android:textColor="@color/white"
|
android:textSize="20sp"
|
tools:text="3.2.1" />
|
|
</LinearLayout>
|
|
</FrameLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical">
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginHorizontal="20dp"
|
android:text="更新内容"
|
android:textColor="@color/black"
|
android:textSize="17sp"
|
android:textStyle="bold" />
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:id="@+id/tv_update_content"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginHorizontal="20dp"
|
android:layout_marginVertical="10dp"
|
android:lineSpacingExtra="5dp"
|
android:maxLines="4"
|
android:minLines="3"
|
android:scrollbars="vertical"
|
android:textColor="#99000000"
|
android:textSize="15sp"
|
tools:text="6\n66\n666\n6666\n66666" />
|
|
<ProgressBar
|
android:id="@+id/pb_update_progress"
|
style="?android:attr/progressBarStyleHorizontal"
|
android:progressDrawable="@drawable/shape_gradient_update_progress"
|
android:layout_width="match_parent"
|
android:layout_height="6dp"
|
android:layout_gravity="center_horizontal"
|
android:layout_marginHorizontal="20dp"
|
android:layout_marginTop="3dp"
|
android:indeterminate="false"
|
android:visibility="gone"
|
tools:progress="50"
|
tools:visibility="visible" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:id="@+id/tv_update_close"
|
android:layout_width="0px"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:focusable="true"
|
android:gravity="center"
|
android:paddingVertical="15dp"
|
android:text="下次再说"
|
android:textColor="#66000000"
|
android:textSize="14sp" />
|
|
<androidx.appcompat.widget.AppCompatTextView
|
android:id="@+id/tv_update_update"
|
android:layout_width="0px"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:focusable="true"
|
android:gravity="center"
|
android:paddingVertical="15dp"
|
android:text="立即更新"
|
android:textColor="#FF3560F4"
|
android:textSize="@dimen/sp_15" />
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|