talkback

Android - Set TalkBack accessibility focus to a specific view

六月ゝ 毕业季﹏ 提交于 2019-11-29 05:53:49
问题 When TalkBack is enabled, is there any way to set the accessibility focus manual to a specific view? For instance, when my Activity is started I want TalkBack to automatically focus on a certain Button (yellow frame around the view) and read its content description. What I've tried so far: myButton.setFocusable(true); myButton.setFocusableInTouchMode(true); myButton.requestFocus(); requestFocus(), it seems, is only requesting input focus and has nothing to do with accessibility focus. I've

How can I maintain a one pointer gesture when explore-by-touch is enabled?

痞子三分冷 提交于 2019-11-29 02:43:10
I have a custom view that captures the user's signature ( John Hancock ). I want our application to be as accessible as possible, so I'm taking special care to ensure to optimize our screens for TalkBack and Explore-by-Touch . Since Explore-by-Touch changes all one finger gestures into two finger gestures, it breaks the custom signature view. What I'd like to do is have Explore-by-Touch announce the view's content description on hover, then enable the view when the user double-taps. This will allow them to draw on top of the view with a single pointer like a normal user. I've searched around

When using TalkBack, what is the preferred way to alert the user when the contents of a TextView have changed?

我是研究僧i 提交于 2019-11-28 21:53:30
I have an unlock screen where the user is prompted to enter a four digit pin. If the user enters their pin incorrectly, a previously invisible TextView is shown with an error message. At this point it would be useful for TalkBack to read the contents of the error message out loud. Through some experimentation, I realized I could set android:focusableInTouchMode="true" on the view and programmatically call View#requestFocus() . This works the first time, but fails on subsequent errors since the view already has focus. Also it seems like a bad idea in general to override the current view focus.

How to change Android talkback instructions for double tap and long press

百般思念 提交于 2019-11-28 11:09:30
I have a view that has a long press action handler. I use the content description to set the message Talkback speaks when the view gets focus. Currently it says my content description right after getting a focus, and after a short pause says: Double tap to activate, double tap and hold for long press I want to change this message into something like Double tap to "action 1" , double tap and hold for "action 2" Is there a way to do so? I looked into onPopulateAccessibilityEvent() , it gets TYPE_VIEW_ACCESSIBILITY_FOCUSED event, but I wasn't able to change the desired message. Am I missing

Android - prevent TalkBack from announcing TextView title aloud

我只是一个虾纸丫 提交于 2019-11-28 00:57:53
I am developing an accessible android application where people would be using Explore by Touch and TalkBack accessibility services to use my application. This is my Android XML code: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/LinearLayout" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:id="@+id/forename" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="20dip" android:layout_marginLeft="15dip" android:textSize="20sp" android

How to know if Android TalkBack is active?

吃可爱长大的小学妹 提交于 2019-11-27 18:47:30
I'm developing an application that uses TalkBack to guide people through it. However, in those situations I want to have some subtile differences in the layout of the application so navigation is easier and also have extra voice outputs (with TextToSpeech) to help guide the user. My problem is that I only want those changes and extra outputs if the user has TalkBack active. Is there any way to know if it is? I didn't find anything specific to access TalkBack settings directly, but I was hoping there was some form of accessing general phone settings that could let me know what I need. Regards

How can I maintain a one pointer gesture when explore-by-touch is enabled?

ε祈祈猫儿з 提交于 2019-11-27 16:57:59
问题 I have a custom view that captures the user's signature (John Hancock). I want our application to be as accessible as possible, so I'm taking special care to ensure to optimize our screens for TalkBack and Explore-by-Touch . Since Explore-by-Touch changes all one finger gestures into two finger gestures, it breaks the custom signature view. What I'd like to do is have Explore-by-Touch announce the view's content description on hover, then enable the view when the user double-taps. This will

When using TalkBack, what is the preferred way to alert the user when the contents of a TextView have changed?

徘徊边缘 提交于 2019-11-27 14:05:49
问题 I have an unlock screen where the user is prompted to enter a four digit pin. If the user enters their pin incorrectly, a previously invisible TextView is shown with an error message. At this point it would be useful for TalkBack to read the contents of the error message out loud. Through some experimentation, I realized I could set android:focusableInTouchMode="true" on the view and programmatically call View#requestFocus(). This works the first time, but fails on subsequent errors since the

How to change Android talkback instructions for double tap and long press

不问归期 提交于 2019-11-27 05:58:33
问题 I have a view that has a long press action handler. I use the content description to set the message Talkback speaks when the view gets focus. Currently it says my content description right after getting a focus, and after a short pause says: Double tap to activate, double tap and hold for long press I want to change this message into something like Double tap to "action 1" , double tap and hold for "action 2" Is there a way to do so? I looked into onPopulateAccessibilityEvent() , it gets

Android - prevent TalkBack from announcing TextView title aloud

两盒软妹~` 提交于 2019-11-26 21:48:12
问题 I am developing an accessible android application where people would be using Explore by Touch and TalkBack accessibility services to use my application. This is my Android XML code: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/LinearLayout" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:id="@+id/forename" android:layout_width="wrap_content" android:layout_height="wrap