Refactor QR scan and share and add QRS support
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<androidx.camera.view.PreviewView
|
||||
android:id="@+id/preview_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/progress"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?colorSurface"
|
||||
android:gravity="center">
|
||||
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:indeterminate="true" />
|
||||
</LinearLayout>
|
||||
|
||||
<include layout="@layout/view_appbar" />
|
||||
|
||||
</FrameLayout>
|
||||
@@ -159,11 +159,16 @@
|
||||
<string name="json_viewer">JSON 查看器</string>
|
||||
<string name="json_editor">JSON 编辑器</string>
|
||||
<string name="view_configuration">查看配置</string>
|
||||
<string name="save_as_file">另存为文件</string>
|
||||
<string name="save_as_file">保存为文件</string>
|
||||
<string name="share_as_file">分享为文件</string>
|
||||
<string name="save_content_json">保存配置 JSON 文件</string>
|
||||
<string name="share_content_json">分享配置 JSON 文件</string>
|
||||
<string name="unsaved_changes">未保存的更改</string>
|
||||
<string name="unsaved_changes_message">您有未保存的更改。要放弃它们吗?</string>
|
||||
<string name="profile_qr_code_text">配置文件二维码:%s</string>
|
||||
<string name="import_profile_confirm_title">导入配置</string>
|
||||
<string name="import_profile_confirm_message">导入配置「%s」?</string>
|
||||
<string name="import_action">导入</string>
|
||||
|
||||
<!-- Groups -->
|
||||
<string name="group_selected_title">选中</string>
|
||||
@@ -372,6 +377,17 @@
|
||||
<!-- QR Code -->
|
||||
<string name="intent_share_qr_code">分享二维码</string>
|
||||
|
||||
<!-- QR Stream (QRS) -->
|
||||
<string name="share_as_qrs">分享为 QRS</string>
|
||||
<string name="qrs_progress">接收中:%1$d / %2$d 块</string>
|
||||
<string name="qrs_speed">速度</string>
|
||||
<string name="qrs_interval_ms">间隔:%d 毫秒</string>
|
||||
<string name="qrs_scanning_mode">QRS 模式</string>
|
||||
<string name="qrs_fps">帧率</string>
|
||||
<string name="qrs_fps_interval">(%d 毫秒)</string>
|
||||
<string name="qrs_slice_size">分块大小</string>
|
||||
<string name="qrs_what_is_qrs">什么是 QRS</string>
|
||||
|
||||
<!-- Search -->
|
||||
<string name="search_placeholder">在文档中查找</string>
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<resources>
|
||||
<color name="seed">#d81b60</color>
|
||||
<color name="surface_80">#CC1C1B1F</color>
|
||||
|
||||
<color name="blue_grey_600">#546e7a</color>
|
||||
|
||||
|
||||
@@ -163,9 +163,14 @@
|
||||
<string name="view_configuration">View Configuration</string>
|
||||
<string name="save_as_file">Save As File</string>
|
||||
<string name="share_as_file">Share As File</string>
|
||||
<string name="save_content_json">Save Content JSON File</string>
|
||||
<string name="share_content_json">Share Content JSON File</string>
|
||||
<string name="unsaved_changes">Unsaved Changes</string>
|
||||
<string name="unsaved_changes_message">You have unsaved changes. Do you want to discard them?</string>
|
||||
<string name="profile_qr_code_text">Profile QR Code: %s</string>
|
||||
<string name="import_profile_confirm_title">Import Profile</string>
|
||||
<string name="import_profile_confirm_message">Import profile \"%s\"?</string>
|
||||
<string name="import_action">Import</string>
|
||||
|
||||
<!-- Groups -->
|
||||
<string name="group_selected_title">Selected</string>
|
||||
@@ -377,6 +382,17 @@
|
||||
<!-- QR Code -->
|
||||
<string name="intent_share_qr_code">Share QR Code</string>
|
||||
|
||||
<!-- QR Stream (QRS) -->
|
||||
<string name="share_as_qrs">Share as QR Stream</string>
|
||||
<string name="qrs_progress">Receiving: %1$d / %2$d blocks</string>
|
||||
<string name="qrs_speed">Speed</string>
|
||||
<string name="qrs_interval_ms">Interval: %d ms</string>
|
||||
<string name="qrs_scanning_mode">QR Stream Mode</string>
|
||||
<string name="qrs_fps">FPS</string>
|
||||
<string name="qrs_fps_interval">(%d ms)</string>
|
||||
<string name="qrs_slice_size">Slice Size</string>
|
||||
<string name="qrs_what_is_qrs">What is QRS</string>
|
||||
|
||||
<!-- Search -->
|
||||
<string name="search_placeholder">Find in document</string>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user