Add preview layout for lockscreen phone affordance

With the new interaction to launch the phone from the lockscreen, Dialer needs
to provide a static layout which looks as close as possible to the screen after
Dialer is fully loaded.

Bug: 15126905
Change-Id: Ide1a54833ed00a9e8854408d7cb872d33633b6e5
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 9b39844..7532763 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -120,6 +120,9 @@
                 <category android:name="android.intent.category.DEFAULT" />
                 <category android:name="android.intent.category.TAB" />
             </intent-filter>
+            <meta-data
+                android:name="com.android.keyguard.layout"
+                android:resource="@layout/keyguard_preview" />
         </activity>
 
         <activity android:name="com.android.dialer.settings.DialerSettingsActivity"
diff --git a/res/layout/keyguard_preview.xml b/res/layout/keyguard_preview.xml
new file mode 100644
index 0000000..0a55268
--- /dev/null
+++ b/res/layout/keyguard_preview.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  ~ Copyright (C) 2014 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
+  -->
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+        android:orientation="vertical"
+        android:layout_height="match_parent"
+        android:layout_width="match_parent">
+    <View
+        android:layout_width="match_parent"
+        android:layout_height="25dp"
+        android:background="@color/dialer_theme_color_dark" />
+    <View
+        android:layout_width="match_parent"
+        android:layout_height="@dimen/actionbar_and_tab_height"
+        android:background="@color/dialer_theme_color" />
+    <View
+        android:layout_width="match_parent"
+        android:layout_weight="1"
+        android:layout_height="0dp"
+        android:background="#ffffff" />
+</LinearLayout>