167 lines
6.1 KiB
XML
167 lines
6.1 KiB
XML
<?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:orientation="vertical"
|
|
android:paddingHorizontal="16dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:gravity="center"
|
|
android:paddingBottom="16dp">
|
|
|
|
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/bottom_sheet_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/update_available"
|
|
android:textSize="20sp"
|
|
android:textStyle="bold" />
|
|
|
|
<View
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"/>
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btn_update"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:icon="@drawable/ic_download"
|
|
style="@style/Widget.Material3Expressive.Button.IconButton.Tonal" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="bottom"
|
|
android:paddingBottom="4dp">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_current_version"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/text"
|
|
android:textAppearance="?attr/textAppearanceBodyMedium"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold" />
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:cardBackgroundColor="?attr/colorPrimaryContainer"
|
|
app:cardCornerRadius="8dp"
|
|
app:strokeWidth="0dp">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_abi"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingHorizontal="8dp"
|
|
android:paddingVertical="2dp"
|
|
android:textSize="12sp"
|
|
android:textStyle="bold"
|
|
android:text="@string/abi_arm64_v8a"
|
|
android:textAppearance="?attr/textAppearanceBodySmall"
|
|
android:textColor="?attr/colorOnSurfaceVariant" />
|
|
</com.google.android.material.card.MaterialCardView>
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="2dp"
|
|
android:layout_marginVertical="2dp"
|
|
android:background="?attr/colorPrimaryContainer" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="bottom"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_version"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/text"
|
|
android:textColor="?attr/colorPrimary"
|
|
android:textSize="24sp"
|
|
android:textStyle="bold" />
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:cardBackgroundColor="?attr/colorTertiaryContainer"
|
|
|
|
app:cardCornerRadius="8dp"
|
|
app:strokeWidth="0dp">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_variable"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingHorizontal="8dp"
|
|
android:paddingVertical="4dp"
|
|
android:textColor="?attr/colorTertiary"
|
|
android:textStyle="bold"
|
|
android:text="@string/text"
|
|
android:textAppearance="?attr/textAppearanceBodyMedium" />
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
</LinearLayout>
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/tv_url"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/download_link"
|
|
android:autoLink="web"
|
|
android:textAppearance="?attr/textAppearanceBodySmall"
|
|
android:textColor="?attr/colorPrimary"
|
|
android:paddingVertical="8dp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textStyle="bold"
|
|
android:textSize="14sp"
|
|
android:text="@string/update_log"/>
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
<io.legato.kazusa.ui.widget.text.ScrollTextView
|
|
android:id="@+id/text_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:paddingVertical="8dp"
|
|
android:textIsSelectable="true" />
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
|
|
</LinearLayout> |