diff options
author | zafir <zafir@google.com> | 2015-02-21 02:29:22 -0700 |
---|---|---|
committer | zafir <zafir@google.com> | 2015-03-03 10:54:47 -0800 |
commit | 971ad50c0f220a396ffce50245617ff59ed0a09e (patch) | |
tree | 1f3042a25124057f7e3a215c71084fbdf4de0f1f /res | |
parent | 1353ff4af747ace3364843dc128e3dea180427bf (diff) | |
download | android_packages_apps_Camera2-971ad50c0f220a396ffce50245617ff59ed0a09e.tar.gz android_packages_apps_Camera2-971ad50c0f220a396ffce50245617ff59ed0a09e.tar.bz2 android_packages_apps_Camera2-971ad50c0f220a396ffce50245617ff59ed0a09e.zip |
Adding ability to zoom in accessibility mode using TalkBack
Bug: 18986078
Bug: 19546523
Change-Id: Ie68234a9a3a0b8b9be870cc674658194c72c84ef
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/camera.xml | 14 | ||||
-rw-r--r-- | res/values/strings.xml | 15 |
2 files changed, 29 insertions, 0 deletions
diff --git a/res/layout/camera.xml b/res/layout/camera.xml index f5ff32f52..704bfc203 100644 --- a/res/layout/camera.xml +++ b/res/layout/camera.xml @@ -100,5 +100,19 @@ android:layout_height="wrap_content" android:text="@string/btn_filmstrip_toggle" android:contentDescription="@string/accessibility_filmstrip_toggle"/> + <Button + android:id="@+id/accessibility_zoom_minus_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/btn_zoom_minus" + android:visibility="gone" + android:contentDescription="@string/accessibility_mode_zoom_minus"/> + <Button + android:id="@+id/accessibility_zoom_plus_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/btn_zoom_plus" + android:visibility="gone" + android:contentDescription="@string/accessibility_mode_zoom_plus"/> </LinearLayout> </FrameLayout> diff --git a/res/values/strings.xml b/res/values/strings.xml index 948ae2c8f..7312541c2 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -540,6 +540,21 @@ <!-- Text on the button that toggles the filmstrip. [CHAR LIMIT=20] --> <string name="btn_filmstrip_toggle">Filmstrip</string> + <!-- Content description of the button that zooms in. [CHAR LIMIT=NONE] --> + <string name="accessibility_mode_zoom_plus">Zoom in</string> + + <!-- Text on the button that zooms in [CHAR LIMIT=20] --> + <string name="btn_zoom_plus">Z+</string> + + <!-- Content description of the button that zooms out. [CHAR LIMIT=NONE] --> + <string name="accessibility_mode_zoom_minus">Zoom out</string> + + <!-- Text on the button that zooms out [CHAR LIMIT=20] --> + <string name="btn_zoom_minus">Z-</string> + + <!-- Accessibility message spoken by TalkBack informing user of the current zoom value [CHAR LIMIT=NONE] --> + <string name="accessibility_zoom_announcement">Zoom value is %.1f</string> + <!-- Default text for a button that can be toggled on and off. --> <string name="capital_on">ON</string> <!-- Default text for a button that can be toggled on and off. --> |