Sai Cheemalapati | 1e61380 | 2014-06-02 09:41:03 -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 | --> |
Andrew Lee | 405a6e6 | 2014-08-20 15:02:16 -0700 | [diff] [blame^] | 16 | <view class="com.android.dialer.dialpad.DialpadFragment$DialpadSlidingRelativeLayout" |
Sai Cheemalapati | 1e61380 | 2014-06-02 09:41:03 -0700 | [diff] [blame] | 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | android:layout_width="match_parent" |
Andrew Lee | 405a6e6 | 2014-08-20 15:02:16 -0700 | [diff] [blame^] | 19 | android:layout_height="wrap_content"> |
| 20 | |
| 21 | <LinearLayout |
| 22 | android:layout_width="match_parent" |
| 23 | android:layout_height="wrap_content" |
| 24 | android:orientation="horizontal"> |
| 25 | |
| 26 | <!-- spacer view --> |
| 27 | <View |
| 28 | android:id="@+id/spacer" |
| 29 | android:layout_width="0dp" |
| 30 | android:layout_height="match_parent" |
| 31 | android:layout_weight="1" |
| 32 | android:background="#00000000" /> |
| 33 | |
| 34 | <!-- Dialpad shadow --> |
| 35 | <View |
| 36 | android:layout_width="@dimen/shadow_length" |
| 37 | android:layout_height="match_parent" |
| 38 | android:background="@drawable/shadow_fade_left" /> |
| 39 | |
| 40 | <RelativeLayout |
| 41 | android:layout_height="match_parent" |
| 42 | android:layout_width="0dp" |
| 43 | android:layout_weight="1"> |
| 44 | |
| 45 | <include layout="@layout/dialpad_view" |
| 46 | android:layout_height="match_parent" |
| 47 | android:layout_width="match_parent" /> |
| 48 | |
| 49 | <!-- "Dialpad chooser" UI, shown only when the user brings up the |
| 50 | Dialer while a call is already in progress. |
| 51 | When this UI is visible, the other Dialer elements |
| 52 | (the textfield/button and the dialpad) are hidden. --> |
| 53 | |
| 54 | <ListView android:id="@+id/dialpadChooser" |
| 55 | android:layout_width="match_parent" |
| 56 | android:layout_height="wrap_content" |
| 57 | android:background="@color/background_dialer_light" |
| 58 | android:visibility="gone" /> |
| 59 | |
| 60 | <!-- Margin bottom and alignParentBottom don't work well together, so use a Space instead. --> |
| 61 | <Space android:id="@+id/dialpad_floating_action_button_margin_bottom" |
| 62 | android:layout_width="match_parent" |
| 63 | android:layout_height="8dp" |
| 64 | android:layout_alignParentBottom="true" /> |
| 65 | |
| 66 | <FrameLayout |
| 67 | android:id="@+id/dialpad_floating_action_button_container" |
| 68 | android:background="@drawable/fab_green" |
| 69 | android:layout_width="@dimen/floating_action_button_width" |
| 70 | android:layout_height="@dimen/floating_action_button_height" |
| 71 | android:layout_above="@id/dialpad_floating_action_button_margin_bottom" |
| 72 | android:layout_centerHorizontal="true"> |
| 73 | |
| 74 | <ImageButton |
| 75 | android:id="@+id/dialpad_floating_action_button" |
| 76 | android:layout_width="match_parent" |
| 77 | android:layout_height="match_parent" |
| 78 | android:background="@drawable/floating_action_button" |
| 79 | android:contentDescription="@string/description_dial_button" |
| 80 | android:src="@drawable/fab_ic_call"/> |
| 81 | |
| 82 | </FrameLayout> |
| 83 | |
| 84 | </RelativeLayout> |
| 85 | |
| 86 | </LinearLayout> |
Sai Cheemalapati | 1e61380 | 2014-06-02 09:41:03 -0700 | [diff] [blame] | 87 | </view> |