Home | History | Annotate | Download | only in layout
      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_centerVertical="true"
     26         android:layout_width="match_parent"
     27         android:layout_height="match_parent"
     28         android:orientation="vertical"
     29         android:elevation="@dimen/primary_call_elevation"
     30         android:background="@color/incall_call_banner_background_color"
     31         android:clipChildren="false"
     32         android:clipToPadding="false"
     33         android:alpha="0.9">
     34 
     35         <include layout="@layout/primary_call_info"
     36                  android:layout_width="match_parent"
     37                  android:layout_height="wrap_content"
     38                  android:layout_marginTop="@dimen/call_banner_vertical_margin"
     39                  android:layout_marginBottom="@dimen/call_banner_vertical_margin"/>
     40 
     41         <fragment android:name="com.android.incallui.CallButtonFragment"
     42                   android:id="@+id/callButtonFragment"
     43                   android:layout_width="wrap_content"
     44                   android:layout_height="wrap_content"
     45                   android:layout_gravity="center_horizontal" />
     46 
     47     </LinearLayout>
     48 
     49     <!-- Placeholder for the dialpad which is replaced with the dialpad fragment when shown. -->
     50     <FrameLayout
     51         android:id="@+id/answer_and_dialpad_container"
     52         android:layout_width="match_parent"
     53         android:elevation="@dimen/dialpad_elevation"
     54         android:layout_height="match_parent" />
     55 
     56     <!-- Secondary "Call info" block, for the background ("on hold") call. -->
     57     <include layout="@layout/secondary_call_info"
     58              android:layout_width="match_parent"
     59              android:layout_height="wrap_content"
     60              android:elevation="4dp"
     61              android:layout_alignParentBottom="true" />
     62 
     63     <include layout="@layout/manage_conference_call_button"
     64              android:layout_width="match_parent"
     65              android:layout_height="wrap_content"
     66              android:elevation="5dp"
     67              android:layout_alignParentBottom="true"/>
     68 
     69     <FrameLayout
     70         android:id="@+id/floating_end_call_action_button_container"
     71         android:layout_width="@dimen/end_call_floating_action_button_diameter"
     72         android:layout_height="@dimen/end_call_floating_action_button_diameter"
     73         android:background="@drawable/fab_red"
     74         android:layout_alignParentBottom="true"
     75         android:layout_centerHorizontal="true">
     76 
     77         <ImageButton android:id="@+id/floating_end_call_action_button"
     78                      android:layout_width="match_parent"
     79                      android:layout_height="match_parent"
     80                      android:background="@drawable/end_call_background"
     81                      android:src="@drawable/fab_ic_end_call"
     82                      android:scaleType="center"
     83                      android:contentDescription="@string/onscreenEndCallText" />
     84 
     85     </FrameLayout>
     86 
     87     <!-- Progress spinner, useful for indicating pending operations such as upgrade to video. -->
     88     <FrameLayout
     89         android:id="@+id/progressSpinner"
     90         android:background="#63000000"
     91         android:layout_width="match_parent"
     92         android:layout_height="match_parent"
     93         android:layout_centerHorizontal="true"
     94         android:layout_centerVertical="true"
     95         android:visibility="gone" >
     96 
     97         <ProgressBar
     98             android:id="@+id/progress_bar"
     99             style="@android:style/Widget.Material.ProgressBar"
    100             android:layout_gravity="center"
    101             android:layout_width="48dp"
    102             android:layout_height="48dp"
    103             android:indeterminate="true" />
    104 
    105     </FrameLayout>
    106 
    107     <fragment android:name="com.android.incallui.VideoCallFragment"
    108               android:layout_alignParentStart="true"
    109               android:layout_gravity="start|center_vertical"
    110               android:id="@+id/videoCallFragment"
    111               android:layout_width="match_parent"
    112               android:layout_height="match_parent" />
    113 
    114     <FrameLayout
    115         android:layout_height="match_parent"
    116         android:layout_width="0dp"
    117         android:layout_weight="1"
    118         android:visibility="gone">
    119 
    120         <FrameLayout
    121             android:layout_height="match_parent"
    122             android:layout_width="match_parent"
    123             android:id="@+id/call_card_content">
    124 
    125             <ImageView android:id="@+id/photoLarge"
    126                        android:layout_width="match_parent"
    127                        android:layout_height="match_parent"
    128                        android:scaleType="centerCrop"
    129                        android:contentDescription="@string/contactPhoto"
    130                        android:background="@color/incall_photo_background_color"
    131                        android:src="@drawable/img_no_image_automirrored" />
    132 
    133             <!-- Call context -->
    134             <LinearLayout
    135                 android:id="@+id/contact_context"
    136                 android:layout_height="match_parent"
    137                 android:layout_width="match_parent"
    138                 android:orientation="vertical"
    139                 android:background="@color/incall_background_color"
    140                 android:visibility="gone">
    141                 <TextView android:id="@+id/contactContextTitle"
    142                           android:textSize="@dimen/contact_context_title_text_size"
    143                           android:textColor="@color/glowpad_background_color"
    144                           android:fontFamily="sans-serif-medium"
    145                           android:layout_width="wrap_content"
    146                           android:layout_height="wrap_content"
    147                           android:layout_gravity="center_horizontal"
    148                           android:layout_marginBottom="@dimen/contact_context_title_margin_bottom" />
    149                 <ListView android:id="@+id/contactContextInfo"
    150                           android:layout_width="match_parent"
    151                           android:layout_height="match_parent"
    152                           android:divider="@null"
    153                           android:dividerHeight="@dimen/contact_context_list_item_padding" />
    154             </LinearLayout>
    155         </FrameLayout>
    156     </FrameLayout>
    157 
    158 </RelativeLayout>
    159