From 210452f13a70de30a46c4ee2aa41668f840dfefd Mon Sep 17 00:00:00 2001 From: uabdullah Date: Wed, 28 Feb 2018 15:54:50 -0800 Subject: Show empty view when there are no voicemails When there are no voicemails to be shown, we show an empty view. This is done by hiding the recycler view and showing the empty view. Similarly when a voicemail is present, we hide the empty view and then show the recycler view. Bug: 25661977 Test: Unit Tests PiperOrigin-RevId: 187396952 Change-Id: Ifa718fb05c1be37aabdf4c91bc2c1653357565b2 --- .../res/layout/new_voicemail_call_log_fragment.xml | 28 ++++++++++++++++------ 1 file changed, 21 insertions(+), 7 deletions(-) (limited to 'java/com/android/dialer/voicemail/listui/res/layout') diff --git a/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_call_log_fragment.xml b/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_call_log_fragment.xml index 9daa3e114..fd9e0f2d2 100644 --- a/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_call_log_fragment.xml +++ b/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_call_log_fragment.xml @@ -15,21 +15,35 @@ ~ limitations under the License --> - - + android:background="@color/background_dialer_light" + android:clipToPadding="false" + android:visibility="gone" + /> + + + + + + + -- cgit v1.2.3