| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- <?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="检测到更新!"
- 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:gravity="center_vertical"
- android:orientation="horizontal"
- android:layout_marginVertical="8dp">
- <com.google.android.material.card.MaterialCardView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- app:strokeWidth="0dp"
- app:cardBackgroundColor="?attr/colorSecondaryContainer">
- <TextView
- android:id="@+id/tv_current_version"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textAppearance="?attr/textAppearanceBodyMedium"
- android:padding="8dp"
- android:text="@string/text" />
- </com.google.android.material.card.MaterialCardView>
- <View
- android:layout_width="0dp"
- android:layout_height="1dp"
- android:background="?attr/colorSecondary"
- android:layout_marginHorizontal="8dp"
- android:layout_weight="1"/>
- <com.google.android.material.card.MaterialCardView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- app:strokeWidth="0dp"
- app:cardBackgroundColor="?attr/colorPrimaryContainer">
- <TextView
- android:id="@+id/tv_version"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textAppearance="?attr/textAppearanceBodyMedium"
- android:padding="8dp"
- android:text="@string/text" />
- </com.google.android.material.card.MaterialCardView>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_vertical"
- android:orientation="horizontal">
- <com.google.android.material.card.MaterialCardView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- app:cardBackgroundColor="?attr/colorPrimaryContainer"
- app:strokeWidth="0dp">
- <TextView
- android:id="@+id/tv_abi"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="8dp"
- android:text="ABI: arm64-v8a"
- android:textAppearance="?attr/textAppearanceBodySmall"
- android:textColor="?attr/colorOnSurfaceVariant" />
- </com.google.android.material.card.MaterialCardView>
- <View
- android:layout_width="0dp"
- android:layout_height="1dp"
- android:layout_marginHorizontal="8dp"
- android:layout_weight="1"
- android:background="?attr/colorSecondary" />
- <com.google.android.material.card.MaterialCardView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- app:cardBackgroundColor="?attr/colorPrimaryContainer"
- app:strokeWidth="0dp">
- <TextView
- android:id="@+id/tv_variable"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:padding="8dp"
- 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="下载链接"
- 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="更新日志"/>
- <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>
|