diff options
author | uabdullah <uabdullah@google.com> | 2017-11-06 09:05:10 -0800 |
---|---|---|
committer | zachh <zachh@google.com> | 2017-11-11 16:24:38 +0000 |
commit | 7dd13e1353d34c796bf27412d83d83f516efcb7e (patch) | |
tree | c6e20d807e1c33623d596d91556b39351d3bbd85 /java/com/android/dialer/voicemail/listui/res/layout | |
parent | 7eb42e93396e085ade51020cb9c44f4651a56c71 (diff) |
Add expand and collapse media player logic for NUI Voicemail Fragment
This adds a file called new_voicemail_media_player_layout.xml that can be expanded and collapsed on tapping the voicemail entry. This file will later be updated in accordance with the specs, but the logic for expansion and collapsing would not be affected by the future cosmetic change.
Video=https://drive.google.com/open?id=1aIpmVfUYrFrg_FZ4tRX_TX6pU9YgPQaN
Bug: 64882313,68382421
Test: Unit Tests
PiperOrigin-RevId: 174713873
Change-Id: I15a6c5f01715429a6eb51fee447a5b42f25fdb56
Diffstat (limited to 'java/com/android/dialer/voicemail/listui/res/layout')
-rw-r--r-- | java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_entry.xml | 8 | ||||
-rw-r--r-- | java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_media_player_layout.xml | 38 |
2 files changed, 46 insertions, 0 deletions
diff --git a/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_entry.xml b/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_entry.xml index d9c557f1a..80bb1b593 100644 --- a/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_entry.xml +++ b/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_entry.xml @@ -81,6 +81,14 @@ android:layout_marginStart="@dimen/call_log_entry_photo_text_margin" android:layout_gravity="center_vertical" android:visibility="gone"/> + + <com.android.dialer.voicemail.listui.NewVoicemailMediaPlayer + android:id="@+id/new_voicemail_media_player" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:visibility="gone" + /> + </LinearLayout> <!-- TODO(a bug): Add ripple effect --> diff --git a/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_media_player_layout.xml b/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_media_player_layout.xml new file mode 100644 index 000000000..762782fb5 --- /dev/null +++ b/java/com/android/dialer/voicemail/listui/res/layout/new_voicemail_media_player_layout.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2017 The Android Open Source Project + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License + --> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="match_parent"> + <!-- TODO(a bug): Remove these buttons as this is a place holder for the Media Player --> + <Button + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Play" + android:id="@+id/playButton" /> + <Button + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Speaker" + android:id="@+id/speakerButton" /> + <Button + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Delete" + android:id="@+id/deleteButton" /> +</LinearLayout> |