You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
FYReader/app/src/main/res/layout/fragment_update.xml

142 lines
5.1 KiB

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#99000000"
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:gravity="center"
android:orientation="vertical"
android:paddingStart="50dp"
android:paddingEnd="50dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@mipmap/down_up">
<TextView
android:id="@+id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
android:layout_marginTop="30dp"
android:text="发现新版本"
android:textColor="@color/white"
android:textSize="20sp" />
<TextView
android:id="@+id/tv_version"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tv_title"
android:layout_marginStart="15dp"
android:layout_marginTop="5dp"
android:textColor="@color/white"
android:textSize="13sp" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@mipmap/down_center"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="15dp"
android:paddingTop="5dp"
android:paddingEnd="15dp"
android:paddingBottom="5dp"
android:text="更新内容"
android:textColor="@color/black"
android:textSize="15sp" />
<TextView
android:id="@+id/tv_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:lineSpacingExtra="5dp"
android:maxLines="8"
android:overScrollMode="always"
android:paddingStart="15dp"
android:paddingTop="5dp"
android:paddingEnd="15dp"
android:paddingBottom="5dp"
android:scrollbars="vertical"
android:fadeScrollbars="false"
android:textColor="@color/gray"
android:textSize="13sp" />
<Button
android:id="@+id/bt_update"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginStart="30dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="20dp"
android:background="@drawable/shape_confirm"
android:gravity="center"
android:text="立即更新"
android:textColor="@color/white"
android:textSize="14sp" />
<Button
android:id="@+id/bt_browser"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginStart="30dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="20dp"
android:background="@drawable/shape_confirm"
android:gravity="center"
android:text="浏览器下载"
android:textColor="@color/white"
android:textSize="14sp" />
<RelativeLayout
android:id="@+id/rl_progress"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="30dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="20dp"
android:visibility="gone">
<xyz.fycz.myreader.widget.BarPercentView
android:id="@+id/bar_percent_view"
android:layout_width="match_parent"
android:layout_height="40dp"
app:barEndColor="@color/end_fffb8435"
app:barIsGradient="true"
app:barRadius="10dp"
app:barStartColor="@color/start_fffe795f" />
<TextView
android:id="@+id/tv_progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="0%"
android:textColor="@color/white" />
</RelativeLayout>
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="20dp"
android:background="@drawable/shape_dialog_buttom" />
<ImageView
android:id="@+id/iv_close"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="25dp"
android:src="@mipmap/dialog_close_update" />
</LinearLayout>