* feat(ui): 添加外部链接跳转确认对话框 - 新增 ConfirmationDialogActivity 用于显示跳转确认对话框 - 在 AndroidManifest.xml 中注册新活动 - 添加 confirmation_dialog.xml 布局文件- 在 JsExtensions.kt 中实现 openUrl 函数以启动对话框 - 更新 styles.xml 添加透明主题样式 - 在 strings.xml 中添加新的错误提示字符串 * feat(dialog): 优化外部链接/应用跳转确认对话框 - 更新对话框布局,增加文本大小设置 - 添加来源标签显示,提高用户识别度 - 优化对话框逻辑,正确处理视图初始化顺序 - 更新字符串资源,支持来源标签显示 --------- Co-authored-by: SunQAQ <sunqi87c6@gmail.com>
57 lines
2.1 KiB
XML
57 lines
2.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout 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:background="#80000000"
|
|
android:padding="16dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:background="@drawable/shape_card_view"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:theme="?attr/actionBarStyle"
|
|
app:popupTheme="@style/AppTheme.PopupOverlay"
|
|
app:title="跳转确认"
|
|
app:titleTextAppearance="@style/ToolbarTitle" />
|
|
|
|
<TextView
|
|
android:id="@+id/message"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="16dp"
|
|
android:textSize="16sp"
|
|
android:textAppearance="?attr/textAppearanceBodyMedium"/>
|
|
|
|
<com.google.android.flexbox.FlexboxLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="8dp"
|
|
app:flexDirection="row"
|
|
app:justifyContent="flex_end">
|
|
|
|
<io.legado.app.ui.widget.text.AccentTextView
|
|
android:id="@+id/btn_negative"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:padding="16dp"
|
|
android:text="@string/cancel"/>
|
|
|
|
<io.legado.app.ui.widget.text.AccentTextView
|
|
android:id="@+id/btn_positive"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:padding="16dp"
|
|
android:text="@string/ok"/>
|
|
|
|
</com.google.android.flexbox.FlexboxLayout>
|
|
</LinearLayout>
|
|
</FrameLayout>
|