Chiao Cheng | 9d4f3b2 | 2012-09-05 16:00:16 -0700 | [diff] [blame] | 1 | <?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 Lee | 8cd9423 | 2014-07-23 14:05:31 -0700 | [diff] [blame] | 17 | <LinearLayout |
Chiao Cheng | 9d4f3b2 | 2012-09-05 16:00:16 -0700 | [diff] [blame] | 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="wrap_content" |
Yorke Lee | 8cd9423 | 2014-07-23 14:05:31 -0700 | [diff] [blame] | 21 | android:orientation="vertical" |
Andrew Lee | c2289b3 | 2015-05-14 15:41:24 -0700 | [diff] [blame] | 22 | 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 Cheng | 9d4f3b2 | 2012-09-05 16:00:16 -0700 | [diff] [blame] | 65 | <LinearLayout |
| 66 | android:id="@+id/buttons_linear_layout" |
| 67 | android:layout_width="match_parent" |
| 68 | android:layout_height="wrap_content" |
Andrew Lee | c2289b3 | 2015-05-14 15:41:24 -0700 | [diff] [blame] | 69 | android:orientation="horizontal"> |
| 70 | |
Yorke Lee | 8cd9423 | 2014-07-23 14:05:31 -0700 | [diff] [blame] | 71 | <ImageButton |
| 72 | android:id="@+id/playback_start_stop" |
Chiao Cheng | 9d4f3b2 | 2012-09-05 16:00:16 -0700 | [diff] [blame] | 73 | android:layout_width="match_parent" |
Yorke Lee | 8cd9423 | 2014-07-23 14:05:31 -0700 | [diff] [blame] | 74 | android:layout_height="58dp" |
Fabrice Di Meglio | c341db0 | 2013-04-03 21:11:37 -0700 | [diff] [blame] | 75 | android:layout_marginEnd="@dimen/call_detail_button_spacing" |
Chiao Cheng | 9d4f3b2 | 2012-09-05 16:00:16 -0700 | [diff] [blame] | 76 | android:layout_weight="1" |
Yorke Lee | 8cd9423 | 2014-07-23 14:05:31 -0700 | [diff] [blame] | 77 | android:background="?android:attr/selectableItemBackground" |
| 78 | android:src="@drawable/ic_hold_pause" |
Andrew Lee | c2289b3 | 2015-05-14 15:41:24 -0700 | [diff] [blame] | 79 | android:contentDescription="@string/voicemail_play_start_pause" /> |
| 80 | |
Yorke Lee | 8cd9423 | 2014-07-23 14:05:31 -0700 | [diff] [blame] | 81 | <ImageButton |
| 82 | android:id="@+id/playback_speakerphone" |
Chiao Cheng | 9d4f3b2 | 2012-09-05 16:00:16 -0700 | [diff] [blame] | 83 | android:layout_width="match_parent" |
Andrew Lee | c2289b3 | 2015-05-14 15:41:24 -0700 | [diff] [blame] | 84 | android:layout_height="58dp" |
Chiao Cheng | 9d4f3b2 | 2012-09-05 16:00:16 -0700 | [diff] [blame] | 85 | android:layout_weight="1" |
Yorke Lee | 8cd9423 | 2014-07-23 14:05:31 -0700 | [diff] [blame] | 86 | android:background="?android:attr/selectableItemBackground" |
| 87 | android:src="@drawable/ic_speakerphone_on" |
Andrew Lee | c2289b3 | 2015-05-14 15:41:24 -0700 | [diff] [blame] | 88 | android:contentDescription="@string/description_playback_speakerphone" /> |
| 89 | |
Chiao Cheng | 9d4f3b2 | 2012-09-05 16:00:16 -0700 | [diff] [blame] | 90 | </LinearLayout> |
Andrew Lee | c2289b3 | 2015-05-14 15:41:24 -0700 | [diff] [blame] | 91 | |
Yorke Lee | 8cd9423 | 2014-07-23 14:05:31 -0700 | [diff] [blame] | 92 | </LinearLayout> |