<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="30dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/top_img"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:scaleType="fitXY"
android:src="@drawable/ic_update_top"/>
<TextView
android:id="@+id/update_version_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/top_img"
android:layout_alignParentRight="true"
android:paddingBottom="4dp"
android:paddingRight="15dp"
android:text="v"
android:textColor="#ff5500"
android:textSize="14sp"/>
</RelativeLayout>
<TextView
android:id="@+id/update_content_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#ffffff"
android:lineSpacingExtra="5dp"
android:paddingBottom="10dp"
android:paddingLeft="15dp"
android:paddingRight="15dp"
android:paddingTop="10dp"
android:text=""
android:textColor="#333333"
android:textSize="12sp"/>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/shape_dialog_bottom"
android:padding="10dp">
<LinearLayout
android:id="@+id/update_btn_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/update_cancel_btn"
style="?android:attr/borderlessButtonStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginRight="5dp"
android:layout_weight="1"
android:background="@drawable/shape_gray_btn"
android:button="@null"
android:minHeight="0dp"
android:padding="5dp"
android:text="取消"
android:textColor="#333333"
android:textSize="16sp"/>
<Button
android:id="@+id/update_submit_btn"
style="?android:attr/borderlessButtonStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_weight="1"
android:background="@drawable/shape_red_btn"
android:minHeight="0dp"
android:padding="5dp"
android:text="升级"
android:textColor="#ffffff"
android:textSize="16sp"/>
</LinearLayout>
<RelativeLayout
android:id="@+id/update_down_layout"
android:layout_width="match_parent"
android:visibility="gone"
android:layout_height="wrap_content">
<ProgressBar
android:id="@+id/update_progress_bar"
style="@style/Base.Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:progressDrawable="@drawable/down_progress_bar"
android:layout_height="6dp"
android:max="100"
android:layout_marginBottom="4dp"
android:progress="0"/>
<TextView
android:layout_width="wrap_content"
android:text="下载中..."
android:textSize="10sp"
android:textColor="#333333"
android:layout_below="@+id/update_progress_bar"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/update_value_text"
android:layout_width="wrap_content"
android:text="0/100%"
android:textSize="10sp"
android:textColor="#333333"
android:layout_alignParentRight="true"
android:layout_below="@+id/update_progress_bar"
android:layout_height="wrap_content"/>
</RelativeLayout>
</FrameLayout>
</LinearLayout>