Home | History | Annotate | Download | only in layout-land
      1 <?xml version="1.0" encoding="utf-8"?>
      2 
      3 <!--
      4   ~ Copyright (C) 2014 The Android Open Source Project
      5   ~
      6   ~ Licensed under the Apache License, Version 2.0 (the "License");
      7   ~ you may not use this file except in compliance with the License.
      8   ~ You may obtain a copy of the License at
      9   ~
     10   ~      http://www.apache.org/licenses/LICENSE-2.0
     11   ~
     12   ~ Unless required by applicable law or agreed to in writing, software
     13   ~ distributed under the License is distributed on an "AS IS" BASIS,
     14   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15   ~ See the License for the specific language governing permissions and
     16   ~ limitations under the License
     17   -->
     18 
     19 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     20     android:layout_width="match_parent"
     21     android:layout_height="match_parent" >
     22 
     23     <LinearLayout
     24         android:id="@+id/primary_call_info_container"
     25         android:layout_alignParentStart="true"
     26         android:layout_centerVertical="true"
     27         android:layout_width="wrap_content"
     28         android:layout_height="match_parent"
     29         android:orientation="vertical"
     30         android:elevation="@dimen/primary_call_elevation"
     31         android:background="@color/incall_call_banner_background_color"
     32         android:paddingTop="@dimen/call_banner_primary_call_container_top_padding"
     33         android:clipChildren="false"
     34         android:clipToPadding="false" >
     35 
     36         <include layout="@layout/primary_call_info" />
     37 
     38         <fragment android:name="com.android.incallui.CallButtonFragment"
     39             android:id="@+id/callButtonFragment"
     40             android:layout_width="match_parent"
     41             android:layout_height="wrap_content" />
     42 
     43         <FrameLayout
     44             android:layout_width="match_parent"
     45             android:layout_height="match_parent" >
     46 
     47             <!-- Secondary "Call info" block, for the background ("on hold") call. -->
     48             <include layout="@layout/secondary_call_info"
     49                 android:layout_width="match_parent"
     50                 android:layout_height="wrap_content"
     51                 android:layout_gravity="bottom" />
     52 
     53         </FrameLayout>
     54 
     55     </LinearLayout>
     56 
     57     <!-- Contact photo for primary call info -->
     58     <ImageView android:id="@+id/photo"
     59         android:layout_toEndOf="@id/primary_call_info_container"
     60         android:layout_width="match_parent"
     61         android:layout_gravity="start|center_vertical"
     62         android:layout_height="match_parent"
     63         android:gravity="start|center_vertical"
     64         android:scaleType="centerCrop"
     65         android:contentDescription="@string/contactPhoto"
     66         android:background="@android:color/white"
     67         android:src="@drawable/img_no_image_automirrored" />
     68 
     69     <include layout="@layout/manage_conference_call_button"
     70         android:layout_width="match_parent"
     71         android:layout_height="wrap_content"
     72         android:layout_alignTop="@id/photo" />
     73 
     74     <!-- Progress spinner, useful for indicating pending operations such as upgrade to video. -->
     75     <FrameLayout
     76         android:id="@+id/progressSpinner"
     77         android:layout_toEndOf="@id/primary_call_info_container"
     78         android:background="#63000000"
     79         android:layout_width="fill_parent"
     80         android:layout_height="fill_parent"
     81         android:layout_centerHorizontal="true"
     82         android:layout_centerVertical="true"
     83         android:visibility="gone" >
     84 
     85         <ProgressBar
     86             android:id="@+id/progress_bar"
     87             style="@android:style/Widget.Material.ProgressBar"
     88             android:layout_gravity="center"
     89             android:layout_width="48dp"
     90             android:layout_height="48dp"
     91             android:indeterminate="true" />
     92     </FrameLayout>
     93 
     94     <!-- Placeholder for the dialpad which is replaced with the dialpad fragment when shown. -->
     95     <FrameLayout
     96         android:id="@+id/dialpadFragmentContainer"
     97         android:layout_toEndOf="@id/primary_call_info_container"
     98         android:layout_gravity="end|center_vertical"
     99         android:layout_alignParentEnd="true"
    100         android:layout_width="match_parent"
    101         android:layout_height="match_parent" />
    102 
    103     <fragment android:name="com.android.incallui.AnswerFragment"
    104         android:id="@+id/answerFragment"
    105         android:layout_toEndOf="@id/primary_call_info_container"
    106         android:layout_width="match_parent"
    107         android:layout_height="match_parent"
    108         android:gravity="start"
    109         android:layout_gravity="end|center_vertical"
    110         android:layout_marginBottom="@dimen/glowpadview_margin_bottom"
    111         android:visibility="gone" />
    112 
    113     <FrameLayout
    114         android:id="@+id/floating_end_call_action_button_container"
    115         android:layout_width="@dimen/end_call_floating_action_button_diameter"
    116         android:layout_height="@dimen/end_call_floating_action_button_diameter"
    117         android:background="@drawable/fab_red"
    118         android:layout_centerHorizontal="true"
    119         android:layout_marginBottom="@dimen/end_call_button_margin_bottom"
    120         android:layout_alignParentBottom="true" >
    121 
    122         <ImageButton android:id="@+id/floating_end_call_action_button"
    123             android:layout_width="match_parent"
    124             android:layout_height="match_parent"
    125             android:background="@drawable/end_call_background"
    126             android:src="@drawable/fab_ic_end_call"
    127             android:scaleType="center"
    128             android:contentDescription="@string/onscreenEndCallText" />
    129 
    130     </FrameLayout>
    131 
    132 </RelativeLayout>
    133