From 929056c3772e00e663982b7ac642a0cc39473152 Mon Sep 17 00:00:00 2001 From: shaoweishen Date: Mon, 16 Dec 2024 08:14:37 +0000 Subject: [PATCH] [Touchpad and Mouse] Sync strings and prefs Sync texts and preferences arrangement in Touchpad and Mouse related pages. Bug: 377602364 Test: atest SettingsRoboTests Flag: com.android.settings.keyboard.keyboard_and_touchpad_a11y_new_page_enabled Change-Id: I64179cc1a6ab1080160923c2d7d861537991ef97 --- res/values/strings.xml | 40 ++++++------ .../accessibility_pointer_and_touchpad.xml | 61 ++++++++++--------- res/xml/mouse_settings.xml | 22 +++++++ res/xml/touchpad_settings.xml | 13 ++++ 4 files changed, 91 insertions(+), 45 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index fcdb2d8a0f1..ee09f9efc77 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -4672,14 +4672,14 @@ Use your keyboard to control the pointer - Mouse reverse scrolling + Reverse scrolling - Scroll up to move the page down + Content moves up when you scroll down Controlled scrolling - Swap left and right buttons + Swap primary mouse button Use the left mouse button as your right @@ -4726,9 +4726,13 @@ Tap to click - Tap dragging + Tap and drag to move items - Tap and drag your finger on the touchpad to move objects + Double-tap an item, hold down on the second tap, and then drag the item to move it + + Touchpad gestures + + Customize individual touchpad navigation gestures Reverse scrolling @@ -4738,9 +4742,9 @@ Click in the bottom right corner of the touchpad for more options - Pointer speed + Cursor speed - Use three finger tap + Customise 3-finger tap Pointer color @@ -4876,7 +4880,7 @@ Pointer speed - Pointer scale + Cursor size Decrease pointer scale @@ -5027,21 +5031,23 @@ Display Color and motion - - Pointer & touchpad accessibility + + Cursor & touchpad accessibility - Pointer color, pointer size & more + Size, color, type - Pointer color customization + Cursor color + + Cursor - Touchpad + Touchpad - Use system gestures + Use 3- or 4-finger gestures - When turned off, 3- or 4-finger gestures are ignored + When turned off, your touchpad will ignore 3- or 4-finger gestures - touchpad, trackpad, swipe + touchpad, trackpad, swipe Color contrast @@ -5531,7 +5537,7 @@ enter settings - Autoclick (dwell timing) + Autoclick (Dwell timing) About autoclick (dwell timing) diff --git a/res/xml/accessibility_pointer_and_touchpad.xml b/res/xml/accessibility_pointer_and_touchpad.xml index a46c8572bb5..01e95f5e34b 100644 --- a/res/xml/accessibility_pointer_and_touchpad.xml +++ b/res/xml/accessibility_pointer_and_touchpad.xml @@ -1,5 +1,4 @@ - - - - - - + android:title="@string/accessibility_pointer_title"> - + + + + + + + + android:title="@string/accessibility_touchpad_system_gestures_enable_title" + settings:keywords="@string/keywords_accessibility_touchpad_system_gestures_enable" /> diff --git a/res/xml/mouse_settings.xml b/res/xml/mouse_settings.xml index dbd87111802..a25d516edbe 100644 --- a/res/xml/mouse_settings.xml +++ b/res/xml/mouse_settings.xml @@ -20,6 +20,12 @@ xmlns:settings="http://schemas.android.com/apk/res-auto" android:title="@string/mouse_settings"> + + + + + + diff --git a/res/xml/touchpad_settings.xml b/res/xml/touchpad_settings.xml index cc9b42ccac7..d3b81573fab 100644 --- a/res/xml/touchpad_settings.xml +++ b/res/xml/touchpad_settings.xml @@ -47,6 +47,13 @@ settings:controller="com.android.settings.inputmethod.TrackpadTapDraggingPreferenceController" android:order="35"/> + + + +