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