blob: 96feba64859dbd3dccbed21a2469f2145c133fb5 [file] [log] [blame]
Chiao Cheng9d4f3b22012-09-05 16:00:16 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16
Yorke Lee8cd94232014-07-23 14:05:31 -070017<LinearLayout
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070018 xmlns:android="http://schemas.android.com/apk/res/android"
19 android:layout_width="match_parent"
20 android:layout_height="wrap_content"
Yorke Lee8cd94232014-07-23 14:05:31 -070021 android:orientation="vertical"
Andrew Leec2289b32015-05-14 15:41:24 -070022 android:background="@color/background_dialer_call_log_list_item">
23
24 <RelativeLayout
25 android:id="@+id/seek_container"
26 android:layout_width="match_parent"
27 android:layout_height="80dp"
28 android:layout_marginTop="@dimen/call_detail_button_spacing">
29
30 <!-- SeekBar left-right margin decreased from redlines 72dp by 8dp to account for
31 half thumb width (thumb is 16dp).
32 Vertically, SeekBar and rate buttons should be below centre, position achieved by
33 making them centred but giving a difference between top and bottom padding,
34 difference is currently 10dp. -->
35 <SeekBar
36 android:id="@+id/playback_seek"
37 android:layout_width="match_parent"
38 android:layout_height="wrap_content"
39 android:progressDrawable="@drawable/seekbar_drawable"
40 android:thumb="@drawable/ic_voicemail_seek_handle"
41 android:thumbOffset="8dp"
42 android:progress="0"
43 android:paddingStart="8dp"
44 android:paddingEnd="8dp"
45 android:paddingTop="30dp"
46 android:paddingBottom="20dp"
47 android:layout_marginEnd="64dp"
48 android:layout_marginStart="64dp"
49 android:max="0"
50 android:layout_centerVertical="true"
51 android:contentDescription="@string/description_playback_seek" />
52
53 <TextView
54 android:id="@+id/playback_position_text"
55 android:layout_height="wrap_content"
56 android:layout_width="wrap_content"
57 android:textSize="14sp"
58 android:layout_alignParentTop="true"
59 android:layout_centerHorizontal="true"
60 android:layout_marginTop="10dp" />
61
62 </RelativeLayout>
63
64 <!-- Playback, speakerphone buttons. -->
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070065 <LinearLayout
66 android:id="@+id/buttons_linear_layout"
67 android:layout_width="match_parent"
68 android:layout_height="wrap_content"
Andrew Leec2289b32015-05-14 15:41:24 -070069 android:orientation="horizontal">
70
Yorke Lee8cd94232014-07-23 14:05:31 -070071 <ImageButton
72 android:id="@+id/playback_start_stop"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070073 android:layout_width="match_parent"
Yorke Lee8cd94232014-07-23 14:05:31 -070074 android:layout_height="58dp"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070075 android:layout_marginEnd="@dimen/call_detail_button_spacing"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070076 android:layout_weight="1"
Yorke Lee8cd94232014-07-23 14:05:31 -070077 android:background="?android:attr/selectableItemBackground"
78 android:src="@drawable/ic_hold_pause"
Andrew Leec2289b32015-05-14 15:41:24 -070079 android:contentDescription="@string/voicemail_play_start_pause" />
80
Yorke Lee8cd94232014-07-23 14:05:31 -070081 <ImageButton
82 android:id="@+id/playback_speakerphone"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070083 android:layout_width="match_parent"
Andrew Leec2289b32015-05-14 15:41:24 -070084 android:layout_height="58dp"
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070085 android:layout_weight="1"
Yorke Lee8cd94232014-07-23 14:05:31 -070086 android:background="?android:attr/selectableItemBackground"
87 android:src="@drawable/ic_speakerphone_on"
Andrew Leec2289b32015-05-14 15:41:24 -070088 android:contentDescription="@string/description_playback_speakerphone" />
89
Chiao Cheng9d4f3b22012-09-05 16:00:16 -070090 </LinearLayout>
Andrew Leec2289b32015-05-14 15:41:24 -070091
Yorke Lee8cd94232014-07-23 14:05:31 -070092</LinearLayout>