Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2009 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 | --> |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 16 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 17 | android:layout_width="match_parent" |
Tyler Gunn | 18164c8 | 2014-06-09 10:20:57 -0700 | [diff] [blame] | 18 | android:layout_height="match_parent"> |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 19 | |
Tyler Gunn | 18164c8 | 2014-06-09 10:20:57 -0700 | [diff] [blame] | 20 | <LinearLayout |
| 21 | android:id="@+id/call_detail" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 22 | android:layout_width="match_parent" |
| 23 | android:layout_height="match_parent" |
Tyler Gunn | 18164c8 | 2014-06-09 10:20:57 -0700 | [diff] [blame] | 24 | android:orientation="vertical" |
| 25 | android:background="@color/background_dialer_list_items" |
Fabrice Di Meglio | c341db0 | 2013-04-03 21:11:37 -0700 | [diff] [blame] | 26 | android:layout_alignParentStart="true" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 27 | android:layout_alignParentTop="true" |
| 28 | > |
Tyler Gunn | 18164c8 | 2014-06-09 10:20:57 -0700 | [diff] [blame] | 29 | <!-- Caller information "card" --> |
| 30 | <LinearLayout |
| 31 | android:id="@+id/caller_information" |
| 32 | android:layout_width="match_parent" |
| 33 | android:layout_height="wrap_content" |
| 34 | android:paddingStart="@dimen/call_detail_horizontal_margin" |
| 35 | android:paddingTop="@dimen/call_detail_top_margin" |
| 36 | android:paddingBottom="@dimen/call_detail_bottom_margin" |
| 37 | android:baselineAligned="false" |
| 38 | android:orientation="horizontal" |
| 39 | android:gravity="center_vertical" |
| 40 | android:translationZ="@dimen/call_detail_translation_z" |
| 41 | android:focusable="true" |
| 42 | android:background="@color/background_dialer_white"> |
| 43 | |
| 44 | <QuickContactBadge |
| 45 | android:id="@+id/quick_contact_photo" |
| 46 | android:layout_width="@dimen/contact_photo_size" |
| 47 | android:layout_height="@dimen/contact_photo_size" |
| 48 | android:layout_alignParentStart="true" |
| 49 | android:focusable="true" |
| 50 | /> |
| 51 | |
| 52 | <LinearLayout |
| 53 | android:layout_width="wrap_content" |
| 54 | android:layout_height="wrap_content" |
| 55 | android:orientation="vertical" |
| 56 | android:gravity="center_vertical" |
| 57 | android:layout_marginStart="@dimen/call_detail_horizontal_margin" |
| 58 | > |
| 59 | <TextView |
| 60 | android:id="@+id/caller_name" |
| 61 | android:layout_width="wrap_content" |
| 62 | android:layout_height="wrap_content" |
| 63 | android:textColor="?attr/call_log_primary_text_color" |
| 64 | android:textSize="@dimen/call_log_primary_text_size" |
| 65 | android:singleLine="true" |
| 66 | /> |
| 67 | <TextView |
| 68 | android:id="@+id/caller_number" |
| 69 | android:layout_width="wrap_content" |
| 70 | android:layout_height="wrap_content" |
| 71 | android:textColor="?attr/call_log_secondary_text_color" |
| 72 | android:textSize="@dimen/call_log_secondary_text_size" |
| 73 | android:singleLine="true" |
| 74 | /> |
| 75 | </LinearLayout> |
| 76 | </LinearLayout> |
| 77 | |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 78 | <FrameLayout |
| 79 | android:id="@+id/voicemail_status" |
| 80 | android:layout_width="match_parent" |
| 81 | android:layout_height="wrap_content" |
Fabrice Di Meglio | c341db0 | 2013-04-03 21:11:37 -0700 | [diff] [blame] | 82 | android:layout_alignParentStart="true" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 83 | android:layout_alignParentTop="true" |
| 84 | android:visibility="gone" |
Tyler Gunn | 18164c8 | 2014-06-09 10:20:57 -0700 | [diff] [blame] | 85 | > |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 86 | <include layout="@layout/call_log_voicemail_status"/> |
| 87 | </FrameLayout> |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 88 | <LinearLayout |
| 89 | android:id="@+id/voicemail_container" |
| 90 | android:layout_width="match_parent" |
| 91 | android:layout_height="wrap_content" |
Tyler Gunn | 18164c8 | 2014-06-09 10:20:57 -0700 | [diff] [blame] | 92 | android:orientation="horizontal" |
| 93 | android:paddingBottom="@dimen/call_detail_button_spacing" |
| 94 | android:visibility="gone" |
| 95 | > |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 96 | <!-- The voicemail fragment will be put here. --> |
| 97 | </LinearLayout> |
Tyler Gunn | 18164c8 | 2014-06-09 10:20:57 -0700 | [diff] [blame] | 98 | |
| 99 | <!-- |
| 100 | The list view is under everything. |
| 101 | It contains a first header element which is hidden under the controls UI. |
| 102 | When scrolling, the controls move up until the name bar hits the top. |
| 103 | --> |
| 104 | <ListView |
| 105 | android:id="@+id/history" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 106 | android:layout_width="match_parent" |
Tyler Gunn | 18164c8 | 2014-06-09 10:20:57 -0700 | [diff] [blame] | 107 | android:layout_height="fill_parent" |
| 108 | /> |
Yorke Lee | aa536fd | 2013-07-29 11:31:04 -0700 | [diff] [blame] | 109 | |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 110 | |
Tyler Gunn | 18164c8 | 2014-06-09 10:20:57 -0700 | [diff] [blame] | 111 | </LinearLayout> |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 112 | <!-- |
| 113 | Used to hide the UI when playing a voicemail and the proximity sensor |
| 114 | is detecting something near the screen. |
| 115 | --> |
| 116 | <View |
| 117 | android:id="@+id/blank" |
| 118 | android:layout_width="match_parent" |
| 119 | android:layout_height="match_parent" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 120 | android:background="@android:color/black" |
| 121 | android:visibility="gone" |
| 122 | android:clickable="true" |
Tyler Gunn | 18164c8 | 2014-06-09 10:20:57 -0700 | [diff] [blame] | 123 | android:layout_alignParentStart="true" |
| 124 | android:layout_alignParentTop="true" |
| 125 | /> |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 126 | </RelativeLayout> |