Relocate EndCallButton and CallButtonFragment.

This is an incremental checkin.

- Split out EndCallButton from CallButtonFragment into
CallCardFragment, and update the presenter to handle end call clicks.
- Move CallButtonFragment and EndCallButton into the container for
the primary call info.
- Rearranged the layouts of the call_card and primary_call_info to
accomodate the new locations of these buttons.
- Temporarily attached a linear layout around the InCallUI dialpad
so that it doesn't render full-screen. That is the immediate followup
work to this..

Bug: 14108639
Change-Id: Ie0e2afae109aed4bc7c75de67c70698c92962760
diff --git a/InCallUI/res/layout/incall_screen.xml b/InCallUI/res/layout/incall_screen.xml
index 892f917..06e8dac 100644
--- a/InCallUI/res/layout/incall_screen.xml
+++ b/InCallUI/res/layout/incall_screen.xml
@@ -15,65 +15,59 @@
 -->
 
 <!-- In-call Phone UI; see InCallActivity.java. -->
-<FrameLayout
-    xmlns:android="http://schemas.android.com/apk/res/android"
-    android:layout_width="match_parent"
-    android:layout_height="match_parent"
-    android:id="@+id/main">
-
-    <LinearLayout
-        android:id="@+id/in_call_and_button_container"
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
-        android:orientation="vertical">
+        android:id="@+id/main" >
 
-        <RelativeLayout
-             android:id="@+id/in_call_card_container"
-             android:layout_width="match_parent"
-             android:layout_height="0dp"
-             android:layout_weight="1">
+    <LinearLayout android:id="@+id/in_call_and_button_container"
+            android:layout_width="match_parent"
+            android:layout_height="match_parent"
+            android:orientation="vertical" >
 
-            <fragment
-                android:name="com.android.incallui.CallCardFragment"
-                android:id="@+id/callCardFragment"
+        <LinearLayout android:id="@+id/in_call_card_container"
                 android:layout_width="match_parent"
-                android:layout_height="match_parent"
-                android:layout_alignParentTop="true"
-                android:layout_alignParentStart="true" />
-            <fragment
-                android:name="com.android.incallui.DialpadFragment"
-                android:id="@+id/dialpadFragment"
-                android:layout_width="match_parent"
-                android:layout_height="match_parent"
-                android:layout_alignParentTop="true"
-                android:layout_alignParentStart="true" />
-        </RelativeLayout>
+                android:layout_height="0dp"
+                android:layout_weight="1"
+                android:orientation="vertical" >
 
-        <fragment android:name="com.android.incallui.CallButtonFragment"
-                  android:id="@+id/callButtonFragment"
-                  android:layout_width="match_parent"
-                  android:layout_height="wrap_content"/>
+            <fragment android:name="com.android.incallui.CallCardFragment"
+                    android:id="@+id/callCardFragment"
+                    android:layout_width="match_parent"
+                    android:layout_height="0dp"
+                    android:layout_alignParentTop="true"
+                    android:layout_alignParentStart="true"
+                    android:layout_weight="1"/>
+
+            <fragment android:name="com.android.incallui.DialpadFragment"
+                    android:id="@+id/dialpadFragment"
+                    android:layout_width="match_parent"
+                    android:layout_height="0dp"
+                    android:layout_alignParentTop="true"
+                    android:layout_alignParentStart="true"
+                    android:layout_weight="1" />
+        </LinearLayout>
 
     </LinearLayout>
 
     <fragment android:name="com.android.incallui.AnswerFragment"
-              android:id="@+id/answerFragment"
-              android:layout_width="match_parent"
-              android:layout_height="wrap_content"
-              android:layout_alignParentBottom="true"
-              android:layout_centerHorizontal="true"
-              android:gravity="top"
-              android:layout_gravity="bottom|center_horizontal"
-              android:layout_marginBottom="@dimen/glowpadview_margin_bottom"
-              android:visibility="gone" />
+            android:id="@+id/answerFragment"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_alignParentBottom="true"
+            android:layout_centerHorizontal="true"
+            android:gravity="top"
+            android:layout_gravity="bottom|center_horizontal"
+            android:layout_marginBottom="@dimen/glowpadview_margin_bottom"
+            android:visibility="gone" />
 
     <fragment android:name="com.android.incallui.ConferenceManagerFragment"
-              android:id="@+id/conferenceManagerFragment"
-              android:layout_width="match_parent"
-              android:layout_height="match_parent"
-              android:layout_alignParentTop="true"
-              android:layout_alignParentStart="true"
-              android:layout_alignParentBottom="true"
-              android:layout_alignParentEnd="true" />
+            android:id="@+id/conferenceManagerFragment"
+            android:layout_width="match_parent"
+            android:layout_height="match_parent"
+            android:layout_alignParentTop="true"
+            android:layout_alignParentStart="true"
+            android:layout_alignParentBottom="true"
+            android:layout_alignParentEnd="true" />
 
 </FrameLayout>