Add landscape dialer for Contacts (Phone) app when in car dock.
Bug: 5566469
Change-Id: I080bd22b3983409e6432e1d78cb693135af9503c
diff --git a/res/layout/call_log_fragment.xml b/res/layout/call_log_fragment.xml
index 5e7061c..34b4b7f 100644
--- a/res/layout/call_log_fragment.xml
+++ b/res/layout/call_log_fragment.xml
@@ -16,10 +16,10 @@
<!-- Layout parameters are set programmatically. -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ style="@style/FragmentActionBarPadding"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
- android:paddingBottom="?android:attr/actionBarSize"
android:divider="?android:attr/dividerHorizontal"
android:showDividers="end">
@@ -27,8 +27,6 @@
android:id="@+id/voicemail_status"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_alignParentBottom="true"
android:visibility="gone">
<include layout="@layout/call_log_voicemail_status"
/>
diff --git a/res/layout/dialpad_additional_buttons.xml b/res/layout/dialpad_additional_buttons.xml
deleted file mode 100644
index 392f97a..0000000
--- a/res/layout/dialpad_additional_buttons.xml
+++ /dev/null
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2009 The Android Open Source Project
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<!-- Horizontal row of buttons (Voicemail + DialButton + Delete.) -->
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/dialpadAdditionalButtons"
- android:layout_width="match_parent"
- android:layout_height="0px"
- android:layout_weight="@integer/dialpad_layout_weight_additional_buttons"
- android:layout_gravity="center_horizontal"
- android:background="@drawable/dialpad_background"
- android:orientation="horizontal">
-
- <!-- Onscreen "All contacts" button.
- TODO: rename this id. -->
- <ImageButton android:id="@+id/searchButton"
- android:layout_width="0px"
- android:layout_weight="0.30"
- android:layout_height="match_parent"
- android:layout_gravity="center_vertical"
- android:state_enabled="false"
- android:background="?android:attr/selectableItemBackground"
- android:contentDescription="@string/description_search_button"
- android:src="@drawable/ic_dial_action_search"/>
-
- <View
- android:layout_width="1dip"
- android:layout_height="24dip"
- android:layout_gravity="center_vertical"
- android:background="?android:attr/dividerVertical" />
-
- <!-- Onscreen "Dial" button, diused on all platforms by
- default. Its usage can be disabled using resources (see
- config.xml.) -->
- <ImageButton android:id="@+id/dialButton"
- android:layout_width="0px"
- android:layout_weight="0.40"
- android:layout_height="match_parent"
- android:layout_gravity="center_vertical"
- android:state_enabled="false"
- android:background="@drawable/btn_call"
- android:contentDescription="@string/description_dial_button"
- android:src="@drawable/ic_dial_action_call" />
-
- <View
- android:layout_width="1dip"
- android:layout_height="24dip"
- android:layout_gravity="center_vertical"
- android:background="?android:attr/dividerVertical" />
-
- <!-- Onscreen "Backspace/Delete" button -->
- <ImageButton android:id="@+id/deleteButton"
- android:layout_width="0px"
- android:layout_weight="0.30"
- android:layout_height="match_parent"
- android:layout_gravity="center_vertical"
- android:state_enabled="false"
- android:background="?android:attr/selectableItemBackground"
- android:contentDescription="@string/description_delete_button"
- android:src="@drawable/ic_dial_action_delete" />
-</LinearLayout>
-
diff --git a/res/layout/phone_contact_tile_list.xml b/res/layout/phone_contact_tile_list.xml
index 57dd66c..8931cf6 100644
--- a/res/layout/phone_contact_tile_list.xml
+++ b/res/layout/phone_contact_tile_list.xml
@@ -17,10 +17,10 @@
<!-- Use LinearLayout + FrameLayout, just to rely on android:divider and android:showDividers -->
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
+ style="@style/FragmentActionBarPadding"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
- android:paddingBottom="?android:attr/actionBarSize"
android:divider="?android:attr/dividerHorizontal"
android:showDividers="end">
<FrameLayout