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" 17 xmlns:app="http://schemas.android.com/apk/res-auto" 18 class="com.android.dialer.dialpadview.DialpadFragment$DialpadSlidingRelativeLayout" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content"> 21 22 <LinearLayout 23 android:layout_width="match_parent" 24 android:layout_height="wrap_content" 25 android:orientation="horizontal"> 26 27 <!-- spacer view --> 28 <View 29 android:id="@+id/spacer" 30 android:layout_width="0dp" 31 android:layout_height="match_parent" 32 android:layout_weight="4" 33 android:background="#00000000"/> 34 35 <!-- Dialpad shadow --> 36 <View 37 android:layout_width="@dimen/shadow_length" 38 android:layout_height="match_parent" 39 android:background="@drawable/shadow_fade_left"/> 40 41 <RelativeLayout 42 android:layout_width="0dp" 43 android:layout_height="match_parent" 44 android:layout_weight="6"> 45 46 <include 47 layout="@layout/dialpad_view" 48 android:layout_width="match_parent" 49 android:layout_height="match_parent"/> 50 51 <!-- "Dialpad chooser" UI, shown only when the user brings up the 52 Dialer while a call is already in progress. 53 When this UI is visible, the other Dialer elements 54 (the textfield/button and the dialpad) are hidden. --> 55 56 <ListView 57 android:id="@+id/dialpadChooser" 58 android:layout_width="match_parent" 59 android:layout_height="wrap_content" 60 android:background="?android:attr/colorBackgroundFloating" 61 android:visibility="gone"/> 62 63 <!-- Margin bottom and alignParentBottom don't work well together, so use a Space instead. --> 64 <Space 65 android:id="@+id/dialpad_floating_action_button_margin_bottom" 66 android:layout_width="match_parent" 67 android:layout_height="@dimen/floating_action_button_margin_bottom" 68 android:layout_alignParentBottom="true"/> 69 70 <android.support.design.widget.FloatingActionButton 71 android:id="@+id/dialpad_floating_action_button" 72 android:layout_width="@dimen/floating_action_button_width" 73 android:layout_height="@dimen/floating_action_button_height" 74 android:layout_above="@id/dialpad_floating_action_button_margin_bottom" 75 android:layout_centerHorizontal="true" 76 android:contentDescription="@string/description_dial_button" 77 android:src="@drawable/quantum_ic_call_white_24" 78 android:visibility="invisible" 79 app:backgroundTint="@color/dialer_call_green" 80 app:elevation="@dimen/floating_action_button_translation_z"/> 81 </RelativeLayout> 82 </LinearLayout> 83</view> 84