[TIMOB-11462] Android: Accessibility: TableViewRow: Accessibility does not work for TableViewRow on Android HoneyComb
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-10-15T22:03:12.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | n/a |
Components | Android |
Labels | qe-and100112, qe-nfc |
Reporter | Neha Chhabra |
Assignee | Bill Dawson |
Created | 2012-10-13T11:22:54.000+0000 |
Updated | 2014-07-17T10:09:24.000+0000 |
Description
Accessibility does not work for TableViewRow on Android HoneyComb,whereas it works fine on ICS.On honeycomb it does not speak the default text as well.
Steps To reproduce:
1. Install and launch the app on device with Talk back enabled.
2. Touch the second row, Row2
Expected Result:
After Step 2: The Accessibility LVH values should speak
Actual Result:
After Step 2: It does not speak the Accessibility LVH values
app.js
var win = Ti.UI.createWindow({
title : 'Welcome',
backgroundColor: "#fff"
});
var row1=Ti.UI.createTableViewRow({
title:'Row 1',
hasChild:true,
});
var row2=Ti.UI.createTableViewRow({
title:'Row 2',
hasCheck:true,
accessibilityLabel: 'Second Option',
accessibilityValue: 'Checked',
accessibilityHint: 'The cheked sign on right'
});
var row3=Ti.UI.createTableViewRow({
title:'Row 3',
hasDetail:true,
accessibilityValue: 'Row 3 Value',
accessibilityLabel: 'Third Option',
accessibilityHint: 'The Details icon on right'
});
var row4=Ti.UI.createTableViewRow({
//title:'Row 4',
backgroundImage : '/images/topRow.png',
selectedBackgroundImage : '/images/topRowSelected.png',
leftImage : "/images/imageA.png",
accessibilityValue: 'Row 4 value',
accessibilityLabel: 'Fourth Row',
accessibilityHint: 'Row with images'
});
var row5=Ti.UI.createTableViewRow({
title:'Row 5',
accessibilityValue: 'Row 5 value',
accessibilityLabel: 'Fifth Row',
accessibilityHidden:true
});
var data = [row1,row2,row3,row4,row5];
var table=Ti.UI.createTableView({data:data});
win.add(table);
win.open();
Attachments
File | Date | Size |
---|---|---|
images.zip | 2012-10-13T11:22:54.000+0000 | 10743 |
It speaks the default text fine, so this is actually a duplicate of TIMOB-11463. Regarding the default text: clicking a table row is not the same as the table row having focus. Accessibility text is read aloud by TalkBack when a view has focus, not when the view is "clicked". So to test on Honeycomb and below, you need either... a) A device with a D-PAD or equivalent. b) The "Eyes Free Keyboard" to emulate a D-PAD on the screen. Eyes free: https://play.google.com/store/apps/details?id=com.googlecode.eyesfree.inputmethod.latin&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5nb29nbGVjb2RlLmV5ZXNmcmVlLmlucHV0bWV0aG9kLmxhdGluIl0.