talkback

Android TalkBack and fragment stack

ぃ、小莉子 提交于 2019-12-23 09:43:55
问题 For an application that I work on, I need to implement accessibility. Everything works fine except for one screen where I have to fragments added to my activity. Basically, the fragment that is above is a dial keyboard to enter a passcode. This fragment is added with a fragmentTransaction. The thing is that the talkback focus is set on the elements of the underneath fragment. Do you know if there is a way to set the talkback focus on the dial fragment ? I just want to "disable" the fragment

Android Recyclerview Talkback issue

懵懂的女人 提交于 2019-12-23 09:05:18
问题 I have an Android Recyclerview which has some more rows of item. In the sense Recyclerview comprises of Row 1 ->> TextView , below that one more textview Row 2 ->> TextView , below that one more textview Issue is that, whenever I turn on the Talkback, it reads out the entire Recyclerview in one go, which is not expected, it should read one item at a time depending on the focussed item. Expected behavior is - Read component on Focus when d-pad is moved onto it. Any help?? 回答1: It would appear

Double tap doesn't click the parent view in talkback mode

岁酱吖の 提交于 2019-12-21 23:08:04
问题 I have the following xml file. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <LinearLayout android:id="@+id/linear_layout1" android:layout_width="match_parent" android:layout_height="200dp" android:focusable="true" android:layout_margin="10dp" android:orientation="vertical"> <TextView android:id="@+id/text1" android:layout

Android TalkBack: Hint overwrites contentDescription

▼魔方 西西 提交于 2019-12-21 05:03:46
问题 I have an EditText like below <EditText android:id="@+id/extUsername" android:layout_width="match_parent" android:layout_height="match_parent" android:contentDescription="Username field" android:hint="Username" /> I want TalkBack to say "Username field" but it says "Username". It ignores contentDescription. Do not tell me to remove hint or contentDescription. I need to use both. Any advices will be appreciated. 回答1: What you want to do is use LabelFor instead. LabelFor allows a visual label

How to create accessible focus groups in ConstraintLayout?

只愿长相守 提交于 2019-12-21 03:18:33
问题 Imagine you have a LinearLayout inside a RelativeLayout that contains 3 TextViews with artist, song and album : <RelativeLayout ... <LinearLayout android:id="@id/text_view_container" android:layout_width="warp_content" android:layout_height="wrap_content" android:orientation="vertical"> <TextView android:id="@id/artist" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Artist"/> <TextView android:id="@id/song" android:layout_width="wrap_content" android

How to stop Touch To Explore feature of TalkBack in my app

房东的猫 提交于 2019-12-20 06:27:01
问题 I'm working on a project for blind people, there're a lot of troubles I need to fix if the user activates TalkBalk on his phone. I'm creating a soft keyboard for blind people, the blind will tap with single finger on the circles "Braille Cell Dots" to generate a Braille code, then he types the character/number/symbols he wants as they presented in Braille language. My problem now is Touch To Explore feature of TalkBack, the user will not be able to make a single tap on the screen because this

Android - Preventing TalkBack to read the application Name and current Orientation

做~自己de王妃 提交于 2019-12-14 00:22:16
问题 Problem is I am using TTS to read a long string message when my activity is launched, but TalkBack automatically reads the application name in the middle of it and cuts the long string and is very annoying. I would like to disable the TalkBack read the Application name every time an activity is launched. Removing its android:label attribute is not a viable solution as the application is controlled by someone else and I have no control over it. So, Is there any API that I could call to prevent

Android webview do not scroll down accessibility marker

余生长醉 提交于 2019-12-13 02:06:56
问题 In my app webview have HTML text ,when I run app in accessibility mode (Talkback) it do not move accessibility marker down to content on webview, using two finger swipe I can swipe down. How can I set webview so that it marker scroll down when user taps. 回答1: On recent versions of Android, Chrome and WebView use exactly the same engine. Test the same URL / HTML content in Chrome on the same device. If it's not accessible there, then the problem is with your content. Post a new question about

Override TalkBack gestures

≡放荡痞女 提交于 2019-12-13 01:38:01
问题 I have a Input Service and View in it. I need to override some gestures for ExplorationByTouch: e.g.: I want to turn off the double click. Here's a part of code, where I want to do that. Any idea how? @Override public boolean onTouchEvent(MotionEvent e) { final int action = e.getAction(); switch (getActionMasked(action)) { case MotionEvent.ACTION_DOWN: { // Processing the first touch // Index of the first pointer always equals to 0 final int firstIndex = 0; final int identifier = e

Android accessibility in Edit text box text not reading properly/Expect After Talk back on

拟墨画扇 提交于 2019-12-11 17:39:52
问题 I am creating app for blind people. there, when blind people after entered the zip code on that profile registration Edit Text box, like 45987. It reading as Fourty Five Thousand and Nine hundred eighty seven. But, I want to read an Four Five Nine Eight Seven. 4 5 9 8 7. Note: when i tried for the same in TexView, its reading as correctly. only problem with EditText. My Sample Code: zipCode_EditText.setContentDescription("4 5 9 8 7"); I have referred these link: Android Acccessibility: How do