From 9ad88c9f1417d5b0dcfa270e916692f11aecc0b5 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 5 Jan 2015 16:50:47 -0800 Subject: Read enabled/disabled state for InCall buttons. + Add CallToggleButton which ignores the content description so that we can substitue our own strings to be read by Talkback when the user clicks on buttons. + Convert ImageButtons with two states into ToggleButtons, so that when focused Talkback automatically reads out their states. For example, now it will read "Mute switch is (not) checked". This required updating some casts and references in the fragment. + Set baselineAligned property for call buttons to false. Because ToggleButtons could have text, it was attempting to align by text baselines which messed with the layout. - Remove a compound button listener which is not used. Bug: 18783204 Change-Id: I0b23f5f63a2bf7c34a34077a75a23ea92dc45bbc --- InCallUI/res/layout/call_button_fragment.xml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'InCallUI/res/layout/call_button_fragment.xml') diff --git a/InCallUI/res/layout/call_button_fragment.xml b/InCallUI/res/layout/call_button_fragment.xml index 56d65b07f..2ca640368 100644 --- a/InCallUI/res/layout/call_button_fragment.xml +++ b/InCallUI/res/layout/call_button_fragment.xml @@ -47,7 +47,8 @@ android:layout_height="wrap_content" android:paddingStart="@dimen/button_cluster_horizontal_padding" android:paddingEnd="@dimen/button_cluster_horizontal_padding" - android:gravity="bottom|center_horizontal"> + android:gravity="bottom|center_horizontal" + android:baselineAligned="false"> - @@ -89,7 +90,7 @@ - @@ -100,7 +101,7 @@ other of these must always be set to GONE. --> - @@ -120,7 +121,7 @@ android:visibility="gone" /> - -