Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [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 | <view xmlns:android="http://schemas.android.com/apk/res/android" |
Eric Erfanian | fc37b02 | 2017-03-21 10:11:17 -0700 | [diff] [blame] | 17 | xmlns:app="http://schemas.android.com/apk/res-auto" |
Eric Erfanian | fc0eb8c | 2017-08-31 06:57:16 -0700 | [diff] [blame] | 18 | class="com.android.dialer.dialpadview.DialpadFragment$DialpadSlidingRelativeLayout" |
Eric Erfanian | fc37b02 | 2017-03-21 10:11:17 -0700 | [diff] [blame] | 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="wrap_content" |
| 21 | android:orientation="horizontal"> |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 22 | |
| 23 | <LinearLayout |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame] | 24 | android:layout_width="match_parent" |
| 25 | android:layout_height="wrap_content" |
| 26 | android:orientation="vertical"> |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 27 | |
| 28 | <!-- spacer view --> |
| 29 | <View |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame] | 30 | android:id="@+id/spacer" |
| 31 | android:layout_width="match_parent" |
| 32 | android:layout_height="0dp" |
| 33 | android:layout_weight="1" |
| 34 | android:background="#00000000"/> |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 35 | <!-- Dialpad shadow --> |
| 36 | <View |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame] | 37 | android:layout_width="match_parent" |
| 38 | android:layout_height="@dimen/shadow_length" |
| 39 | android:background="@drawable/shadow_fade_up"/> |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 40 | <include layout="@layout/dialpad_view"/> |
| 41 | <!-- "Dialpad chooser" UI, shown only when the user brings up the |
| 42 | Dialer while a call is already in progress. |
| 43 | When this UI is visible, the other Dialer elements |
| 44 | (the textfield/button and the dialpad) are hidden. --> |
| 45 | <ListView |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame] | 46 | android:id="@+id/dialpadChooser" |
| 47 | android:layout_width="match_parent" |
| 48 | android:layout_height="wrap_content" |
| 49 | android:background="@color/background_dialer_light" |
| 50 | android:visibility="gone"/> |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 51 | |
| 52 | </LinearLayout> |
| 53 | |
| 54 | <!-- Margin bottom and alignParentBottom don't work well together, so use a Space instead. --> |
| 55 | <Space |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame] | 56 | android:id="@+id/dialpad_floating_action_button_margin_bottom" |
| 57 | android:layout_width="match_parent" |
| 58 | android:layout_height="@dimen/floating_action_button_margin_bottom" |
| 59 | android:layout_alignParentBottom="true"/> |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 60 | |
Eric Erfanian | fc37b02 | 2017-03-21 10:11:17 -0700 | [diff] [blame] | 61 | <android.support.design.widget.FloatingActionButton |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 62 | android:id="@+id/dialpad_floating_action_button" |
Eric Erfanian | fc37b02 | 2017-03-21 10:11:17 -0700 | [diff] [blame] | 63 | android:layout_width="@dimen/floating_action_button_width" |
| 64 | android:layout_height="@dimen/floating_action_button_height" |
| 65 | android:layout_above="@id/dialpad_floating_action_button_margin_bottom" |
| 66 | android:layout_centerHorizontal="true" |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 67 | android:contentDescription="@string/description_dial_button" |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame] | 68 | android:src="@drawable/quantum_ic_call_vd_theme_24" |
calderwoodra | 8dab453 | 2017-11-15 14:16:43 -0800 | [diff] [blame^] | 69 | android:tint="#ffffff" |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame] | 70 | app:backgroundTint="@color/dialpad_fab_green" |
| 71 | app:colorControlNormal="#ffffff" |
| 72 | app:elevation="@dimen/floating_action_button_translation_z"/> |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 73 | </view> |