Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 
      3 <!--
      4   ~ Copyright (C) 2013 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:id="@+id/call_card"
     21         android:layout_width="match_parent"
     22         android:layout_height="match_parent"
     23         android:orientation="vertical">
     24 
     25     <!-- The main content of the CallCard is either one or two "call info"
     26          blocks, depending on whether one or two lines are in use.
     27 
     28          The call_info blocks are stacked vertically inside a CallCard (LinearLayout),
     29          each with layout_weight="1".  If only one line is in use (i.e. the
     30          common case) then the 2nd call info will be GONE and thus the 1st one
     31          will expand to fill the full height of the CallCard. -->
     32 
     33 
     34     <!-- Primary "call card" block, for the foreground call. -->
     35     <include android:id="@+id/primary_call_info"
     36             layout="@layout/primary_call_info" />
     37 
     38     <!-- Secondary "Call info" block, for the background ("on hold") call. -->
     39     <ViewStub android:id="@+id/secondary_call_info"
     40             android:layout="@layout/secondary_call_info"
     41             android:layout_width="match_parent"
     42             android:layout_height="0dp"
     43             android:layout_weight="1" />
     44 
     45 </LinearLayout>
     46