accessibility

What is android:contentDescription=“@string/desc” in ImageView's xml?

天大地大妈咪最大 提交于 2021-02-19 03:18:23
问题 I added an imageView in GraphicalLayout but it looks different on my real device than on AVD. I found that I need to add contentDescription in a layout .xml , but when I add: contentDescription="@string/desc" there is an error: "No resource found that matches the given name (at 'contentDescription' with value '@string/desc')" What is this string "desc"? What should it looks like? 回答1: You need to add it in your string.xml file: <string name="desc">your desc goes here</string> Although I don't

What is android:contentDescription=“@string/desc” in ImageView's xml?

别说谁变了你拦得住时间么 提交于 2021-02-19 03:13:42
问题 I added an imageView in GraphicalLayout but it looks different on my real device than on AVD. I found that I need to add contentDescription in a layout .xml , but when I add: contentDescription="@string/desc" there is an error: "No resource found that matches the given name (at 'contentDescription' with value '@string/desc')" What is this string "desc"? What should it looks like? 回答1: You need to add it in your string.xml file: <string name="desc">your desc goes here</string> Although I don't

Screen readers and Javascript

余生颓废 提交于 2021-02-18 10:15:03
问题 I'm creating a website for a reading service for the blind and visually impaired and I'm using JavaScript (with jQuery) to print some stuff to some of the pages after the page has loaded. Will the screen reader read the content that is printed to the page with jquery after the page has been loaded? From this page - "Generally, [screen readers] access the DOM (Document Object Model), and they use browser APIs (Application Programming Interfaces) to get the information they need." and we know

Setting the front most window using accessibility API

浪子不回头ぞ 提交于 2021-02-18 07:35:09
问题 I want to set a certain window, from an external app (for example textedit), to be front most. I can successfully get a reference to the app itself using GetFrontProcess, and check whether it is front most. If it is not, I can use setFrontProcess to make it focussed. I can then use the the accessibility API to examine all the windows under that application. I am checking that a certain window exists, and if so I compare it against the front most window of the application: //get the front

Setting the front most window using accessibility API

萝らか妹 提交于 2021-02-18 07:32:24
问题 I want to set a certain window, from an external app (for example textedit), to be front most. I can successfully get a reference to the app itself using GetFrontProcess, and check whether it is front most. If it is not, I can use setFrontProcess to make it focussed. I can then use the the accessibility API to examine all the windows under that application. I am checking that a certain window exists, and if so I compare it against the front most window of the application: //get the front

Setting the front most window using accessibility API

蓝咒 提交于 2021-02-18 07:32:13
问题 I want to set a certain window, from an external app (for example textedit), to be front most. I can successfully get a reference to the app itself using GetFrontProcess, and check whether it is front most. If it is not, I can use setFrontProcess to make it focussed. I can then use the the accessibility API to examine all the windows under that application. I am checking that a certain window exists, and if so I compare it against the front most window of the application: //get the front

Setting accessibility identifier programmatically on UIBarButtonItem

醉酒当歌 提交于 2021-02-18 03:49:55
问题 The accessibility identifier is a developer generated ID for GUI objects, which can be used for automation tests. A UIBarButtonItem does not implement UIAccessibilityIdentification . However is there a possibility that I can assign an accessibility identifier? 回答1: You could subclass UIBarButtonItem and implement the UIAccessibilityIdentification protocol in that subclass, lets's say BarButtonWithAccesibility . In BarButtonWithAccesibility.h : @interface BarButtonWithAccesibility :

macOS: simulated mouse event only works when launching binary, not application bundle

大兔子大兔子 提交于 2021-02-16 14:28:05
问题 I have the following code which moves the mouse cursor on a Mac: void moveCursorPos() { CGPoint ppos; ppos.x = 100; ppos.y = 100; CGEventRef e = CGEventCreateMouseEvent(nullptr, kCGEventMouseMoved, ppos, kCGMouseButtonLeft); CGEventPost(kCGHIDEventTap, e); CFRelease(e); } It works when I run my software directly from its binary - e.g. ./foo.app/Contents/MacOS/foo . It does not not work when I start it through open foo.app . Doing open ./foo.app/Contents/MacOS/foo works. The first time I

How to improve browser autocomplete suggestions without turning them off?

眉间皱痕 提交于 2021-02-11 15:48:29
问题 There are ten gazillion threads on here re. how to disable browser autocomplete behavior, e.g. How do you disable browser Autocomplete on web form field / input tag?. I do not want to set autocomplete="off" for my form fields. As the MDN documentation for how to do that states: It is important to know that if you turn off autocomplete, you are breaking [WCAG rule 1.3.5] So as an alternative to disabling autocomplete, I want to understand whether as a developer I can help the browser make its

How to improve browser autocomplete suggestions without turning them off?

别说谁变了你拦得住时间么 提交于 2021-02-11 15:47:23
问题 There are ten gazillion threads on here re. how to disable browser autocomplete behavior, e.g. How do you disable browser Autocomplete on web form field / input tag?. I do not want to set autocomplete="off" for my form fields. As the MDN documentation for how to do that states: It is important to know that if you turn off autocomplete, you are breaking [WCAG rule 1.3.5] So as an alternative to disabling autocomplete, I want to understand whether as a developer I can help the browser make its