oyeamauri / eyes-free

Automatically exported from code.google.com/p/eyes-free
0 stars 0 forks source link

Unable to give users feedback when CompoundButton's status is changed by calling setCheck(boolean) #195

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. have an APP with a ListView contains TextView + CheckBox.
2. have a OnItemClickListener and change CheckBox's status when item clicking
3. Enable TalkBack and click the item to change the CheckBox to 
"checked/unchecked"

What is the expected output? What do you see instead?
TalkBack should speak "check/uncheck" as it in CheckBoxPreference.

What version of the product are you using? On what operating system?
JellyBean 4.2

Please provide any additional information below.

Original issue reported on code.google.com by seawinds...@gmail.com on 1 Mar 2013 at 8:08

GoogleCodeExporter commented 8 years ago
If TalkBack does not receive a TYPE_VIEW_CLICKED event from the check box, it 
will not speak anything. Consider calling 
checkBox.sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_CLICKED) after 
changing the checked state to manually send this event.

Original comment by alanv@google.com on 6 Mar 2013 at 1:39

GoogleCodeExporter commented 8 years ago
It works when I have 
checkBox.sendAccessibilityEvent(Accessibility.TYPE_VIEW_CLICKED) after I call 
checkBox.setChecked(!checkBox.isChecked()). However, it doesn't work when the 
item gets the accessibility focus because of a HOVER. The content of TextView 
is spoken but the status of the CheckBox is not. How can I make this happen?

Original comment by seawinds...@gmail.com on 7 Mar 2013 at 11:57