talkback

Android SeekBar talkback, talking too much

≯℡__Kan透↙ 提交于 2019-12-11 13:45:43
问题 (Android) On a music player, you update the seekbar as expected with this: PRECISION_SEEKBAR = 100000; ((SeekBar) findViewById(R.id.seekBar2)).setMax(PRECISION_SEEKBAR); timerSeekBarUpdate.scheduleAtFixedRate(new TimerTask() { @Override public void run() { runOnUiThread(new Runnable() { final SeekBar seekBar = (SeekBar) findViewById(R.id.seekBar); @Override public void run() { if (control == null || player == null) { cancel(); return; } seekBar.setProgress((int) (player.getCurrentPosition() *

Change Talkback language dynamically?

萝らか妹 提交于 2019-12-11 07:56:34
问题 I have an application with a translation quiz and I want to make it accessible to blind people. The problem is that when I focus on a Spanish sentence (for example), Talkback reads it in English. Is there any way to trigger the Spanish TTS dynamically in Java? Thank you 回答1: Yes there is now! You have to wrap the string in a LocaleSpan (min sdk 17) and the latest version of TalkBack can switch language on the fly. What's new in Android Accessibility 2017 - https://youtu.be/h5rRNXzy1xo?t=11m

Accessibility Dialog/DialogFragment reads text instead of content description

人盡茶涼 提交于 2019-12-11 01:57:14
问题 I have a dialog, that has few textviews. For each textview I have set different content description and text. For eg. <TextView android:id="@+id/tv_3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:contentDescription="TV 3" android:text="Text Number 3" /> When I show the dialog to the user, Talkback reads the text (ie. Text Number 3) of each textview and not the content description (ie. TV 3). However if I hover on any textview, Talkback reads the content

Android - Talkback announces class type at end of content description.

血红的双手。 提交于 2019-12-10 22:29:02
问题 This is happening in several places for multiple class types but I'll stick with a button example for now. So I have a button which I want talkback to announce as "Play". The content description is set to "Play". However, talkback is also announcing the class too, so it reads as "Play Button". I tried a solution I found elsewhere by overloading the onInitializeAccessibilityNodeInfo method private void setupContentDescriptors() { mPlayPauseButton.setAccessibilityDelegate(new View

Android WebView Select option breaks with TalkBack ON

爷,独闯天下 提交于 2019-12-08 10:42:51
问题 I have an app using WebView to load page containing dropdown(Select options): <select id='num'> <option value='10'>10</option> <option value='20'>20</option> <option value='50'>50</option> WebView has getSettings().setJavaScriptEnabled(true); When Talkback is ON, I am unable to select other options 20 or 50(10 is default selected). Talkback reads all the options(10,20,50) in the option popup but on double tapping to select an option, it just closes the popup without selecting that option. I

How to stop Accessibility from announcing android button as “button”?

眉间皱痕 提交于 2019-12-08 04:57:16
问题 I have a button in Android which has text "Next" written on it. when, I have the accsessibility cursor focus on the button, it reads out "Next button". This is something I don't want. I want whenever, the cursor to have focus on the "Next" button, it must read out as "Next button. Double tap to select". This I can easily do, by setting the btn.contentDescription("Next button. Double tap to select") , but then it reads out as "Next button. Double tap to select button" , means it additionally

how to get webview from AccessibilityNodeInfo

陌路散爱 提交于 2019-12-07 23:18:49
问题 I am creating an application in which i need to use AccessibilityService. And there is no problem to get get the window content of other applications. I have detected all available child from the window content and the child are showing in AccessibilityNodeInfo. Now I have a webview in AccessibilityNodeInfo And i need to get the URL of that WebView but there is no way to convert the AccessibilityNodeInfo into the relevant View. Is there any way to get the webview from AccessibilityNodeInfo ?

Android - Override TalkBack gestures

别来无恙 提交于 2019-12-07 15:24:23
问题 I want to use TalkBack within my app, but still want some activities to behave differently. For example, when entering a specific activity I want to select a button (trigger a button click) when lifting finger up from that button. TalkBack enables only double-click to select a button. How can I "override" TalkBack gestures? Thanks! 回答1: You can perform a click action on HOVER_EXIT, but you'll need to do some work to prevent TalkBack from expecting the normal double-click action. The phone

Android Acccessibility: How do I change the text read out loud for an EditText View

扶醉桌前 提交于 2019-12-07 03:01:29
问题 By default, the Accessibility Services will read out the following for an EditText view If the EditText has a value entered = it will read out that value If there is not value entered = it will read out the "hint" I want it to read out something completely different in both cases. My xml snippet is <EditText android:id="@+id/my_edit_text" android:layout_height="wrap_content" android:layout_width="0dp" android:layout_weight="1" android:editable="false" android:focusable="true" android:hint="my

Is there any callback or anything (any parameter in event or nodeInfo) to know accessibility service (TalkBack) has finished reading?

匆匆过客 提交于 2019-12-06 14:23:32
问题 I have an application requirement to announce text in a list view. The list view item gets added at run time. I have to announce them one by one. I searched on google and in android docs, but I could not reach there. Please help me, how to know accessibility services finished reading the text? Thanks :) 回答1: Simple answer... don't do it this way! This is silliness. Just use the accessibility features available to you and let TalkBack (or other potential screen reader) manage it for you. Just