From c4a3d12e825b54469c1987e3af05e020b657d7e6 Mon Sep 17 00:00:00 2001 From: Sun-QAQ <75133710+Sun-QAQ@users.noreply.github.com> Date: Wed, 12 Feb 2025 17:13:14 +0800 Subject: [PATCH] =?UTF-8?q?style(dialog):=20=E4=BF=AE=E6=94=B9=E7=A1=AE?= =?UTF-8?q?=E8=AE=A4=E5=AF=B9=E8=AF=9D=E6=A1=86=E6=A0=87=E9=A2=98=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=20(#4659)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * style(dialog): 修改确认对话框标题样式 - 将确认对话框的标题文本外观从 "@style/ToolbarTitle" 更改为 "@style/ToolbarTitleX" - 新增 "ToolbarTitleX" 样式,继承自 "TextAppearance.Widget.AppCompat.Toolbar.Title" * 添加openUrl方法说明 --------- Co-authored-by: SunQAQ --- app/src/main/assets/web/help/md/jsHelp.md | 7 +++++++ app/src/main/res/layout/confirmation_dialog.xml | 2 +- app/src/main/res/values/styles.xml | 5 +++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/app/src/main/assets/web/help/md/jsHelp.md b/app/src/main/assets/web/help/md/jsHelp.md index 830679b16..b5f6b9b2a 100644 --- a/app/src/main/assets/web/help/md/jsHelp.md +++ b/app/src/main/assets/web/help/md/jsHelp.md @@ -443,3 +443,10 @@ cache.getFromMemory(key: String): Any? cache.putMemory(key: String, value: Any) ``` + +## 跳转外部链接/应用函数 +```js +// 跳转外部链接,传入http链接或者scheme跳转到浏览器或其他应用 +java.openUrl(url:String) +// 指定mimeType,可以跳转指定类型应用,例如(video/*) +java.openUrl(url:String,mimeType:String) \ No newline at end of file diff --git a/app/src/main/res/layout/confirmation_dialog.xml b/app/src/main/res/layout/confirmation_dialog.xml index 26c768c6d..b8b0b36d1 100644 --- a/app/src/main/res/layout/confirmation_dialog.xml +++ b/app/src/main/res/layout/confirmation_dialog.xml @@ -20,7 +20,7 @@ android:theme="?attr/actionBarStyle" app:popupTheme="@style/AppTheme.PopupOverlay" app:title="跳转确认" - app:titleTextAppearance="@style/ToolbarTitle" /> + app:titleTextAppearance="@style/ToolbarTitleX" /> true + +