Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -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" |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 18 | android:layout_width="match_parent" |
Ihab Awad | 526c0b8 | 2014-02-27 12:55:36 -0800 | [diff] [blame] | 19 | android:layout_height="wrap_content" |
Andrew Lee | 405a6e6 | 2014-08-20 15:02:16 -0700 | [diff] [blame] | 20 | android:orientation="horizontal"> |
| 21 | |
| 22 | <LinearLayout |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 23 | android:layout_width="match_parent" |
Andrew Lee | 405a6e6 | 2014-08-20 15:02:16 -0700 | [diff] [blame] | 24 | android:layout_height="wrap_content" |
| 25 | android:orientation="vertical"> |
| 26 | |
| 27 | <!-- spacer view --> |
| 28 | <View |
| 29 | android:id="@+id/spacer" |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 30 | android:layout_width="match_parent" |
Andrew Lee | 405a6e6 | 2014-08-20 15:02:16 -0700 | [diff] [blame] | 31 | android:layout_height="0dp" |
| 32 | android:layout_weight="1" |
beanstown106 | c43a7b1 | 2015-11-20 21:59:10 -0500 | [diff] [blame^] | 33 | android:background="@color/background_color_transparent" /> |
Andrew Lee | 405a6e6 | 2014-08-20 15:02:16 -0700 | [diff] [blame] | 34 | <!-- Dialpad shadow --> |
| 35 | <View |
| 36 | android:layout_width="match_parent" |
| 37 | android:layout_height="@dimen/shadow_length" |
| 38 | android:background="@drawable/shadow_fade_up" /> |
| 39 | <include layout="@layout/dialpad_view" /> |
| 40 | <!-- "Dialpad chooser" UI, shown only when the user brings up the |
| 41 | Dialer while a call is already in progress. |
| 42 | When this UI is visible, the other Dialer elements |
| 43 | (the textfield/button and the dialpad) are hidden. --> |
| 44 | <ListView android:id="@+id/dialpadChooser" |
| 45 | android:layout_width="match_parent" |
| 46 | android:layout_height="wrap_content" |
| 47 | android:background="@color/background_dialer_light" |
| 48 | android:visibility="gone" /> |
| 49 | |
| 50 | </LinearLayout> |
| 51 | |
| 52 | <!-- Margin bottom and alignParentBottom don't work well together, so use a Space instead. --> |
| 53 | <Space android:id="@+id/dialpad_floating_action_button_margin_bottom" |
| 54 | android:layout_width="match_parent" |
| 55 | android:layout_height="@dimen/floating_action_button_margin_bottom" |
| 56 | android:layout_alignParentBottom="true" /> |
| 57 | |
| 58 | <FrameLayout |
| 59 | android:id="@+id/dialpad_floating_action_button_container" |
| 60 | android:background="@drawable/fab_green" |
| 61 | android:layout_width="@dimen/floating_action_button_width" |
| 62 | android:layout_height="@dimen/floating_action_button_height" |
| 63 | android:layout_above="@id/dialpad_floating_action_button_margin_bottom" |
| 64 | android:layout_centerHorizontal="true"> |
| 65 | |
| 66 | <ImageButton |
| 67 | android:id="@+id/dialpad_floating_action_button" |
| 68 | android:layout_width="match_parent" |
| 69 | android:layout_height="match_parent" |
| 70 | android:background="@drawable/floating_action_button" |
| 71 | android:contentDescription="@string/description_dial_button" |
| 72 | android:src="@drawable/fab_ic_call"/> |
| 73 | |
| 74 | </FrameLayout> |
| 75 | |
Fang Yunong | 48809a4 | 2016-07-21 12:06:52 +0800 | [diff] [blame] | 76 | <TextView |
| 77 | android:id="@+id/dialpad_floating_operator" |
| 78 | android:layout_width="wrap_content" |
| 79 | android:layout_height="wrap_content" |
| 80 | android:layout_below="@id/dialpad_floating_action_button_container" |
| 81 | android:layout_centerHorizontal="true" |
| 82 | android:textColor="?attr/call_log_secondary_text_color" |
| 83 | android:textSize="12sp" |
| 84 | android:singleLine="true" |
| 85 | android:visibility="gone" /> |
Yorke Lee | 8898cd0 | 2013-08-08 10:24:27 -0700 | [diff] [blame] | 86 | </view> |