Improve qr scanner

This commit is contained in:
世界
2024-03-16 17:13:41 +08:00
parent 29e02d2696
commit 78dd252b78
6 changed files with 79 additions and 32 deletions

View File

@@ -34,6 +34,7 @@
<TextView
android:layout_width="0dp"
android:layout_weight="1"
android:textSize="16sp"
android:text="@string/profile_add_scan_qr_code"
android:gravity="center_vertical"
android:layout_height="match_parent">
@@ -58,6 +59,7 @@
<TextView
android:layout_width="0dp"
android:layout_weight="1"
android:textSize="16sp"
android:text="@string/profile_add_create_manually"
android:gravity="center_vertical"
android:layout_height="match_parent">

View File

@@ -2,7 +2,19 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/action_disable_vendor_analyzer"
android:title="@string/disable_vendor_analyzer" />
android:checkable="true"
android:id="@+id/action_use_front_camera"
android:title="@string/profile_add_scan_use_front_camera" />
<item
android:checkable="true"
android:id="@+id/action_enable_torch"
android:title="@string/profile_add_scan_enable_torch" />
<item
android:checkable="true"
android:id="@+id/action_use_vendor_analyzer"
android:title="@string/profile_add_scan_use_vendor_analyzer" />
</menu>

View File

@@ -42,7 +42,10 @@
<string name="profile_source_import">Import</string>
<string name="profile_add_scan_qr_code">Scan QR code</string>
<string name="profile_add_import_from_clipboard">Import remote profile from clipboard</string>
<string name="profile_add_scan_use_front_camera">Front camera</string>
<string name="profile_add_scan_use_vendor_analyzer">MLKit analyzer</string>
<string name="profile_add_scan_enable_torch">Torch</string>
<string name="profile_add_create_manually">Create Manually</string>
<string name="menu_undo">Undo</string>
@@ -189,6 +192,5 @@
<string name="open_settings">Open Settings</string>
<string name="settings_title_core">Core</string>
<string name="disable_vendor_analyzer">Disable Google MLKit</string>
</resources>