Rabbit-R1/original r1/java/resources/res/layout/activity_update.xml

141 lines
5.8 KiB
XML
Raw Normal View History

2024-05-21 21:08:36 +00:00
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:id="@+id/rl_update_info"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:gravity="center"
android:orientation="horizontal"
android:id="@+id/ll_update_buttons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true">
<Button
android:id="@+id/btn_network"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:text="network setting"
android:onClick="onSetNetworkClicked"
android:textAllCaps="false"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"/>
<Button
android:id="@+id/btn_update"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:text="update"
android:onClick="onUpdateClicked"
android:textAllCaps="false"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"/>
</LinearLayout>
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/ll_update_buttons">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:textSize="24dp"
android:textStyle="bold"
android:gravity="center"
android:id="@+id/tv_update_info_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"/>
<TextView
android:textSize="18dp"
android:textStyle="bold"
android:gravity="center"
android:id="@+id/tv_update_info_version"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="30dp"/>
<TextView
android:textSize="12dp"
android:gravity="center"
android:id="@+id/tv_pkg_url"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="30dp"/>
<TextView
android:gravity="center"
android:id="@+id/tv_update_info"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
</ScrollView>
</RelativeLayout>
<LinearLayout
android:gravity="center"
android:orientation="vertical"
android:id="@+id/ll_update_state"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:textSize="24dp"
android:textStyle="bold"
android:gravity="center"
android:id="@+id/tv_update_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<TextView
android:textSize="18dp"
android:textStyle="bold"
android:gravity="center"
android:id="@+id/tv_update_version"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="30dp"/>
<ProgressBar
android:id="@+id/progress_update_state"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="?android:attr/progressBarStyleHorizontal"/>
<TextView
android:textSize="14dp"
android:textStyle="bold"
android:gravity="center"
android:id="@+id/tv_update_state"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"/>
</LinearLayout>
<LinearLayout
android:gravity="center"
android:orientation="vertical"
android:id="@+id/ll_update_result"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:textSize="18dp"
android:textStyle="bold"
android:gravity="center"
android:id="@+id/tv_update_result"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="30dp"/>
<Button
android:textSize="20dp"
android:textStyle="bold"
android:id="@+id/btn_finish"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="onFinishClicked"
android:textAllCaps="false"/>
</LinearLayout>
</RelativeLayout>