<?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="match_parent"
|
android:gravity="center"
|
android:orientation="vertical" >
|
|
<LinearLayout
|
android:layout_width="@dimen/bjskres_dialog_update_width"
|
android:layout_height="wrap_content"
|
android:background="@drawable/bjskres_sdk_dialog_base"
|
android:gravity="center"
|
android:orientation="vertical" >
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_centerHorizontal="true"
|
android:layout_centerVertical="true"
|
android:layout_marginTop="10dip"
|
android:layout_marginStart="10dip"
|
android:layout_marginEnd="10dip"
|
android:layout_marginBottom="5dip"
|
android:gravity="center|left"
|
android:text="@string/bjskres_update_title"
|
android:textColor="@color/bjskres_gray_dark"
|
android:textSize="18sp" />
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1px"
|
android:layout_marginStart="8dip"
|
android:layout_marginEnd="8dip"
|
android:background="@color/bjskres_gray_light" />
|
|
<ScrollView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content" >
|
|
<TextView
|
android:id="@+id/update_notice"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_margin="5dip"
|
android:gravity="center"
|
android:paddingBottom="20dip"
|
android:paddingTop="20dip"
|
android:text="@string/bjskres_update_tips"
|
android:textColor="@color/bjskres_gray"
|
android:textSize="13sp"
|
android:textStyle="normal" />
|
</ScrollView>
|
|
<RelativeLayout android:id="@+id/update_loadingview"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_margin="5dip"
|
android:visibility="invisible"
|
>
|
|
<TextView
|
android:id="@+id/update_size"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_alignParentLeft="true"
|
android:layout_alignParentTop="true"
|
android:layout_marginStart="5dip"
|
android:text="0MB/0MB"
|
android:textSize="12sp" />
|
|
<TextView
|
android:id="@+id/update_speed"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_alignParentRight="true"
|
android:layout_marginEnd="5dip"
|
android:text="0KB/s"
|
android:textSize="12sp" />
|
|
<com.bjsk.sdk.m.views.common.LoadingLineWithText
|
android:id="@+id/update_progress"
|
android:layout_width="match_parent"
|
android:layout_height="15dp"
|
android:layout_below="@id/update_size" />
|
</RelativeLayout>
|
|
<LinearLayout
|
android:id="@+id/buttonLayout"
|
style="@style/bjskres_button_layout_style"
|
android:gravity="center"
|
android:orientation="horizontal"
|
android:padding="@dimen/bjskres_content_padding" >
|
|
<Button
|
android:id="@+id/update_hide"
|
style="@style/bjskres_button_style"
|
android:layout_height="30dip"
|
android:layout_marginStart="25dip"
|
android:layout_marginEnd="25dip"
|
android:layout_weight="1"
|
android:background="@drawable/bjskres_btn_gray"
|
android:text="@string/bjskres_update_hide"
|
android:textSize="15sp"
|
/>
|
|
<Button
|
android:id="@+id/update_start"
|
style="@style/bjskres_button_style"
|
android:layout_height="30dip"
|
android:layout_marginStart="25dip"
|
android:layout_marginEnd="25dip"
|
android:layout_weight="1"
|
android:background="@drawable/bjskres_btn_green"
|
android:text="@string/bjskres_update_start"
|
android:textSize="15sp"
|
/>
|
</LinearLayout>
|
</LinearLayout>
|
|
</LinearLayout>
|