talkback

Accessibility - Android Talkback doesn't fire focus event on HTML content

妖精的绣舞 提交于 2019-12-02 04:04:18
I'm trying to execute/receive a onfocus HTML event using Talkback on an Android Device (Moto G Android 4.4.3) on an HTML page while selecting an input field. I created on single input text with an onfocus event : this event never get called when using "touch explorer" with talkback. When I select/hover it with Talkback there is a little outline over my field it but it's not the HTML :focus state : <input type="text" id="myInput" onfocus="focusFunction()" onblur="blurFunction()"> See this fiddle for an example : https://jsfiddle.net/hpgqmz7f/embedded/result/ On IOS + VoiceOver or Chrome@PC +

Android Talkback not registering onFocus for web. How do I manipulate accessibility focus with Android Talkback?

做~自己de王妃 提交于 2019-12-01 08:30:49
As the title says, Android Talkback is not registering the onFocus event. I understand that the onFocus event is not ever registered since the screen reader is using a special type of accessibility focus . How, then, can we drive/manipulate the accessibility focus to provide the user a better experience? I have an example here: https://codesandbox.io/s/r54j2mqrl4 . So here the console.log("hello!") is not registering for me in mobile Android Talkback, however it is registering correctly on desktop mac OSX(with no screen reader on). I am using the tab key to navigate. Is there something similar

Android Talkback not registering onFocus for web. How do I manipulate accessibility focus with Android Talkback?

戏子无情 提交于 2019-12-01 04:11:36
问题 As the title says, Android Talkback is not registering the onFocus event. I understand that the onFocus event is not ever registered since the screen reader is using a special type of accessibility focus. How, then, can we drive/manipulate the accessibility focus to provide the user a better experience? I have an example here: https://codesandbox.io/s/r54j2mqrl4 . So here the console.log("hello!") is not registering for me in mobile Android Talkback, however it is registering correctly on

Android: How to force Explore-By-Touch/Talkback to repeat the ContentDescription of the current View in AccessibilityFocus?

允我心安 提交于 2019-12-01 01:57:39
问题 In my Android app, I have a View which displays an image and has an associated ContentDescription . I can enable Settings->Accessibility->Talkback , with Explore By Touch from the Talkback settings, and then single tap on the View to read the ContentDescription aloud. This is all as expected so far. However, I would like Explore By Touch to repeat the ContentDescription if I single tap the same View again. For example, my image and description may be updated while it has the

onTouchEvent is not called when talkback enabled on custom view

随声附和 提交于 2019-12-01 00:02:30
I'm implementing custom keyboard (through custom view) for password field and trying add accessibility feature, so when user single press on view it should pronounce selected value. In my custom keyboard I need coordinates from MotionEvent so view can calculate on what draw (value) it was pressed. But in this case when Talkback enabled onTouchEvent method is not called. It calls only when user double tap on view. Im trying to add custom OnTouchListener but it does not work. setFocusable=true and setFocusableInTouchMode=true . When TalkBack is enabled a double tap is the equivalent of a single

Android: How to eliminate spoken text from AccessibilityEvents when extending SeekBar?

那年仲夏 提交于 2019-11-30 23:24:36
My Android app contains a custom slider control based on the SeekBar , and I want to attach a custom text phrase to my control to explain its use for Accessibility. I have done this successfully using View.setContentDescription(text) , and TalkBack correctly speaks the phrase when I request focus on my slider control from Activity.onCreate . So far, so good. However, when I touch the control, which I believe sets the AccessibilityFocus on my Android API 16 test device, extra words are being added to the spoken phrase, i.e. '...seek control. 0 per cent'. I want to remove these additional words.

How to check if Talkback is active in JellyBean

别等时光非礼了梦想. 提交于 2019-11-30 23:15:35
This question asked how to know if Android Talkback is active; that worked until Jelly Bean. Starting from Android 4.1, that steps no longer work, because the mentioned cursor is empty. Having this said, I want to ask is if there is a way to do the same checking in Jelly Bean. EDIT I tried to search for TalkBack code and I found it here . For checking if TalkBack is active, I am using the following code: Intent screenReaderIntent = new Intent("android.accessibilityservice.AccessibilityService"); screenReaderIntent.addCategory("android.accessibilityservice.category.FEEDBACK_SPOKEN"); List

How can I modify the TalkBack usage hint for a clickable View on Android?

淺唱寂寞╮ 提交于 2019-11-30 20:52:29
By default, clickable Views on Android will be rendered with a usage hint that's read aloud (if TalkBack is enabled and the user focuses on that View) after the content description: "Double tap to activate" Can I change this so it reads out something less abstract and more specific to my app? Like: "Double tap to play video" Yes, this is absolutely possible! Overriding the onInitializeAccessibilityNodeInfo method If you have a custom View, you can override the onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) method and add an action with the ACTION_CLICK ID, to override the label:

onTouchEvent is not called when talkback enabled on custom view

一笑奈何 提交于 2019-11-30 17:43:36
问题 I'm implementing custom keyboard (through custom view) for password field and trying add accessibility feature, so when user single press on view it should pronounce selected value. In my custom keyboard I need coordinates from MotionEvent so view can calculate on what draw (value) it was pressed. But in this case when Talkback enabled onTouchEvent method is not called. It calls only when user double tap on view. Im trying to add custom OnTouchListener but it does not work. setFocusable=true

How can I modify the TalkBack usage hint for a clickable View on Android?

折月煮酒 提交于 2019-11-30 17:01:53
问题 By default, clickable Views on Android will be rendered with a usage hint that's read aloud (if TalkBack is enabled and the user focuses on that View) after the content description: "Double tap to activate" Can I change this so it reads out something less abstract and more specific to my app? Like: "Double tap to play video" 回答1: Yes, this is absolutely possible! Overriding the onInitializeAccessibilityNodeInfo method If you have a custom View, you can override the