From 2ee65e79ee71959d2ca26a6a3ec317d3a80b28e9 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 17 Jul 2014 18:44:39 -0700 Subject: Add new buttons for video calls. These are simply hidden for now; behavior needs to be wired up still. Since it now has so many buttons, I also tried to update and clean up the comments/arrangement of buttons in call_button_fragment. Bug: 16014280 Change-Id: If0780bab9de1889d9c4350ffc345c7239cfcc948 --- InCallUI/res/drawable/btn_change_to_audio.xml | 29 ++++++++ InCallUI/res/drawable/btn_change_to_video.xml | 29 ++++++++ InCallUI/res/drawable/btn_compound_video_off.xml | 31 ++++++++ .../res/drawable/btn_compound_video_switch.xml | 31 ++++++++ InCallUI/res/drawable/btn_overflow.xml | 29 ++++++++ InCallUI/res/layout/call_button_fragment.xml | 85 ++++++++++++++++------ InCallUI/res/values/strings.xml | 2 + 7 files changed, 214 insertions(+), 22 deletions(-) create mode 100644 InCallUI/res/drawable/btn_change_to_audio.xml create mode 100644 InCallUI/res/drawable/btn_change_to_video.xml create mode 100644 InCallUI/res/drawable/btn_compound_video_off.xml create mode 100644 InCallUI/res/drawable/btn_compound_video_switch.xml create mode 100644 InCallUI/res/drawable/btn_overflow.xml (limited to 'InCallUI/res') diff --git a/InCallUI/res/drawable/btn_change_to_audio.xml b/InCallUI/res/drawable/btn_change_to_audio.xml new file mode 100644 index 000000000..974dd4a2e --- /dev/null +++ b/InCallUI/res/drawable/btn_change_to_audio.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/InCallUI/res/drawable/btn_change_to_video.xml b/InCallUI/res/drawable/btn_change_to_video.xml new file mode 100644 index 000000000..255b9b6ce --- /dev/null +++ b/InCallUI/res/drawable/btn_change_to_video.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/InCallUI/res/drawable/btn_compound_video_off.xml b/InCallUI/res/drawable/btn_compound_video_off.xml new file mode 100644 index 000000000..776df50ff --- /dev/null +++ b/InCallUI/res/drawable/btn_compound_video_off.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + diff --git a/InCallUI/res/drawable/btn_compound_video_switch.xml b/InCallUI/res/drawable/btn_compound_video_switch.xml new file mode 100644 index 000000000..aa1459370 --- /dev/null +++ b/InCallUI/res/drawable/btn_compound_video_switch.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + diff --git a/InCallUI/res/drawable/btn_overflow.xml b/InCallUI/res/drawable/btn_overflow.xml new file mode 100644 index 000000000..e851eceb4 --- /dev/null +++ b/InCallUI/res/drawable/btn_overflow.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/InCallUI/res/layout/call_button_fragment.xml b/InCallUI/res/layout/call_button_fragment.xml index 8397ace97..a35cc5e3a 100644 --- a/InCallUI/res/layout/call_button_fragment.xml +++ b/InCallUI/res/layout/call_button_fragment.xml @@ -50,10 +50,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" /> - + - + that at any point exactly one of the pair is VISIBLE and the other is GONE. - - + If there are more than 5 buttons eligible to be shown, the presenter is responsible for + collapsing those options into an overflow menu, which appears as one of the buttons + in the row instead. --> + + + + + + + + + - + + - + + - @@ -111,6 +123,22 @@ android:contentDescription="@string/onscreenSwapCallsText" android:visibility="gone" /> + + + + + + + + @@ -121,16 +149,29 @@ android:contentDescription="@string/onscreenAddCallText" android:visibility="gone" /> - - + + + + + + + diff --git a/InCallUI/res/values/strings.xml b/InCallUI/res/values/strings.xml index d0f300d60..3795aa540 100644 --- a/InCallUI/res/values/strings.xml +++ b/InCallUI/res/values/strings.xml @@ -311,6 +311,8 @@ Switch camera Pause video + + More options -- cgit v1.2.3