1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2015 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17<!-- A reusable view that hosts an inline audio player. The view is used by both the media picker 18 and the conversation to show an audio attachment --> 19<merge 20 xmlns:android="http://schemas.android.com/apk/res/android" 21 xmlns:app="http://schemas.android.com/apk/res-auto" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent" 24 android:orientation="horizontal"> 25 26 <com.android.messaging.ui.AudioAttachmentPlayPauseButton 27 android:id="@+id/play_pause_button" 28 style="@style/AudioAttachmentViewPlayPauseButtonStyle" 29 android:layout_width="wrap_content" 30 android:layout_height="wrap_content" 31 android:layout_gravity="center"> 32 <ImageView 33 android:id="@+id/play_button" 34 android:layout_width="wrap_content" 35 android:layout_height="wrap_content" 36 android:src="@drawable/ic_audio_play" 37 android:contentDescription="@string/audio_play_content_description"/> 38 39 <ImageView 40 android:id="@+id/pause_button" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:src="@drawable/ic_audio_pause" 44 android:contentDescription="@string/audio_pause_content_description"/> 45 </com.android.messaging.ui.AudioAttachmentPlayPauseButton> 46 47 <com.android.messaging.ui.mediapicker.PausableChronometer 48 android:id="@+id/timer" 49 style="@style/AudioAttachmentTimerText" 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 android:layout_gravity="center" /> 53 54 <com.android.messaging.ui.AudioPlaybackProgressBar 55 android:id="@+id/progress" 56 style="@android:style/Widget.ProgressBar.Horizontal" 57 android:layout_width="0dp" 58 android:layout_weight="1" 59 android:layout_height="@dimen/audio_progress_bar_height" 60 android:layout_gravity="center" /> 61 62</merge> 63