初始化
This commit is contained in:
@@ -0,0 +1,154 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_bai"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="@dimen/dp_1">
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_163"
|
||||
android:src="@drawable/up_img_1"/>
|
||||
<TextView
|
||||
android:id="@+id/tv_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:textColor="#333333"
|
||||
android:text="最新版本"
|
||||
android:textSize="@dimen/sp_17"
|
||||
android:textStyle="bold" />
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<View
|
||||
android:layout_marginLeft="@dimen/dp_65"
|
||||
android:layout_marginRight="@dimen/dp_65"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_1"
|
||||
android:background="#999999"
|
||||
android:alpha="0.5"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_centerVertical="true"/>
|
||||
<TextView
|
||||
android:id="@+id/vs"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="1.0.0新版本"
|
||||
android:textColor="#ff999999"
|
||||
android:textSize="@dimen/sp_10"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="#fff"
|
||||
android:paddingLeft="@dimen/dp_4"
|
||||
android:paddingRight="@dimen/dp_4"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
<TextView
|
||||
android:layout_marginLeft="@dimen/dp_30"
|
||||
android:layout_marginRight="@dimen/dp_30"
|
||||
android:layout_marginTop="@dimen/dp_9"
|
||||
android:id="@+id/tv_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="更新内容"
|
||||
android:textColor="#666666"
|
||||
android:textSize="@dimen/sp_12"
|
||||
android:gravity="left"
|
||||
/>
|
||||
<View
|
||||
android:layout_marginLeft="@dimen/dp_30"
|
||||
android:layout_marginRight="@dimen/dp_30"
|
||||
android:layout_marginTop="@dimen/dp_14"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_1"
|
||||
android:background="#000000"
|
||||
android:alpha="0.1"/>
|
||||
<LinearLayout
|
||||
android:layout_marginTop="@dimen/dp_8"
|
||||
android:layout_marginBottom="@dimen/dp_12"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<Button
|
||||
android:layout_marginLeft="@dimen/dp_18"
|
||||
android:id="@+id/tv_cancel"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/dp_36"
|
||||
android:layout_weight="1"
|
||||
android:text="取消"
|
||||
android:textSize="@dimen/sp_14"
|
||||
android:textColor="#ffa2a2b3"
|
||||
android:background="@drawable/bg_btn_blue"
|
||||
android:layout_marginBottom="@dimen/dp_3"
|
||||
android:visibility="gone"/>
|
||||
<Button
|
||||
android:layout_marginLeft="@dimen/dp_18"
|
||||
android:layout_marginRight="@dimen/dp_18"
|
||||
android:id="@+id/tv_confirm"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="立即更新"
|
||||
android:textColor="@color/theme_color"
|
||||
android:textSize="@dimen/sp_17"
|
||||
android:background="@null"
|
||||
android:layout_marginBottom="@dimen/dp_3"/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_marginTop="@dimen/dp_8"
|
||||
android:layout_marginBottom="@dimen/dp_12"
|
||||
android:id="@+id/up_div"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
<ProgressBar
|
||||
android:layout_marginLeft="@dimen/dp_30"
|
||||
android:layout_marginRight="@dimen/dp_30"
|
||||
android:id="@+id/progress"
|
||||
android:layout_width="match_parent"
|
||||
android:progress="0"
|
||||
android:minHeight="@dimen/dp_12"
|
||||
android:minWidth="@dimen/dp_12"
|
||||
style="?android:attr/progressBarStyleHorizontal"
|
||||
android:layout_height="@dimen/dp_12"
|
||||
android:layout_gravity="center"
|
||||
android:progressDrawable="@drawable/par_bg"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_marginTop="@dimen/dp_6"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="飞速下载中"
|
||||
android:textColor="#ff999999"
|
||||
android:textSize="@dimen/sp_8"
|
||||
android:layout_gravity="center"
|
||||
/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:id="@+id/force_box"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
<View
|
||||
android:layout_gravity="center"
|
||||
android:layout_width="@dimen/dp_1"
|
||||
android:layout_height="@dimen/dp_50"
|
||||
android:background="#EFEFEF"/>
|
||||
<ImageButton
|
||||
android:id="@+id/force_btn"
|
||||
android:layout_width="@dimen/dp_30"
|
||||
android:layout_height="@dimen/dp_30"
|
||||
android:src="@mipmap/icon_close"
|
||||
android:scaleType="fitXY"
|
||||
android:layout_gravity="center"
|
||||
android:background="@null"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user