更新界面

This commit is contained in:
HapeLee committed 2025-07-11 02:36:16 +08:00
1 parent b007a81277
commit 329cdac774
7 files changed
+212 -82

No files matched your search

+138 -11
View File
@@ -3,21 +3,148 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
android:orientation="vertical"
android:paddingHorizontal="16dp">
<androidx.appcompat.widget.Toolbar
android:id="@+id/tool_bar"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="?attr/actionBarStyle"
app:titleTextAppearance="@style/ToolbarTitle" />
android:orientation="vertical"
android:gravity="center"
android:paddingVertical="16dp">
<io.legato.kazusa.ui.widget.text.ScrollTextView
android:id="@+id/text_view"
<View
android:layout_width="36dp"
android:layout_height="4dp"
android:layout_gravity="center_horizontal"
android:background="@drawable/bg_bottom_sheet_handle"
android:layout_marginBottom="16dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal">
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"/>
<TextView
android:id="@+id/bottom_sheet_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="32dp"
android:text="检测到更新!"
android:textSize="18sp"
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.Material3.Button.IconButton.Filled.Tonal"/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="12dp"
android:textColor="@color/secondaryText"
android:textIsSelectable="true" />
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="123"/>
</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="123"/>
</com.google.android.material.card.MaterialCardView>
</LinearLayout>
<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_abi"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="8dp"
android:text="ABI: arm64-v8a"
android:textColor="?attr/colorOnSurfaceVariant"
android:textAppearance="?attr/textAppearanceBodySmall" />
</com.google.android.material.card.MaterialCardView>
<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>