185 lines
7.2 KiB
XML
185 lines
7.2 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="4dp">
|
|
|
|
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingVertical="16dp"
|
|
android:minHeight="0dp"
|
|
android:layout_gravity="center_horizontal" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/iv_award"
|
|
android:layout_width="48dp"
|
|
android:layout_height="56dp"
|
|
android:clickable="false"
|
|
app:iconSize="32dp"
|
|
app:iconGravity="textStart"
|
|
app:iconPadding="0dp"
|
|
style="@style/Widget.Material3Expressive.Button.TonalButton"
|
|
app:icon="@drawable/ic_award"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/bottom_sheet_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:includeFontPadding="false"
|
|
android:layout_gravity="bottom"
|
|
android:text="@string/update_available"
|
|
android:textSize="20sp"
|
|
android:textStyle="bold"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/iv_award"
|
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
|
|
|
<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"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_current"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="bottom"
|
|
android:paddingVertical="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="4dp"
|
|
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:maxLines="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:paddingTop="8dp"
|
|
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.legado.app.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> |