* 设置界面支持切换到不同类型的仪表盘地址,默认是自动跳转

* 监听遥控器 F8 按键,打开设置界面
* webView 禁止缩放,避免受到安卓字体和dpi缩放的影响
This commit is contained in:
Zhanghu
2025-10-10 15:42:24 +08:00
parent 80a8226c80
commit 4551fe1f5a
6 changed files with 68 additions and 6 deletions

View File

@@ -9,4 +9,16 @@
<item>reply</item>
<item>reply_all</item>
</string-array>
<string-array name="dashboard_type_entries">
<item>0 (根据服务器配置跳转)</item>
<item>1 (按楼层)</item>
<item>2 (网格+统计)</item>
</string-array>
<string-array name="dashboard_type_values">
<item>0</item>
<item>1</item>
<item>2</item>
</string-array>
</resources>

View File

@@ -19,4 +19,5 @@
<string name="attachment_summary_on">Automatically download attachments for incoming emails
</string>
<string name="attachment_summary_off">Only download attachments when manually requested</string>
<string name="dashboard_type_default_value">0</string>
</resources>

View File

@@ -5,5 +5,12 @@
app:title="URL 前缀"
app:defaultValue="http://172.18.22.211:8002/Dashboard"
app:useSimpleSummaryProvider="true" />
<ListPreference
app:title="仪表盘类型"
app:key="k_dashboard_type"
app:useSimpleSummaryProvider="true"
app:entries="@array/dashboard_type_entries"
app:entryValues="@array/dashboard_type_values"
app:defaultValue="@string/dashboard_type_default_value" />
</PreferenceCategory>
</PreferenceScreen>