Home | History | Annotate | Download | only in layout-sw600dp
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2009 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 
     17 <view
     18     class="com.android.contacts.widget.TransitionAnimationView"
     19     android:id="@+id/people_view"
     20     xmlns:android="http://schemas.android.com/apk/res/android"
     21     xmlns:ex="http://schemas.android.com/apk/res-auto"
     22     android:layout_width="match_parent"
     23     android:layout_height="match_parent">
     24 
     25     <LinearLayout
     26         android:id="@+id/main_view"
     27         android:layout_width="match_parent"
     28         android:layout_height="match_parent"
     29         android:orientation="horizontal"
     30         android:splitMotionEvents="true"
     31         android:baselineAligned="false">
     32 
     33         <!-- Left panel browse list for Groups or All tabs -->
     34         <FrameLayout
     35             android:id="@+id/browse_view"
     36             android:layout_width="0dip"
     37             android:layout_height="match_parent"
     38             android:layout_weight="1"
     39             android:background="@drawable/list_background_holo"
     40             android:visibility="gone">
     41 
     42             <!-- All -->
     43             <fragment
     44                 android:id="@+id/all_fragment"
     45                 class="com.android.contacts.list.DefaultContactBrowseListFragment"
     46                 android:layout_height="match_parent"
     47                 android:layout_width="match_parent" />
     48 
     49             <!-- Groups -->
     50             <fragment
     51                 android:id="@+id/groups_fragment"
     52                 class="com.android.contacts.group.GroupBrowseListFragment"
     53                 android:layout_height="match_parent"
     54                 android:layout_width="match_parent" />
     55         </FrameLayout>
     56 
     57         <!-- Right panel detail view for All tab -->
     58         <view
     59             class="com.android.contacts.widget.TransitionAnimationView"
     60             android:id="@+id/contact_details_view"
     61             android:layout_width="0dip"
     62             android:layout_height="match_parent"
     63             android:layout_weight="2"
     64             android:visibility="gone">
     65 
     66             <!-- This layout includes all possible views needed for a contact detail page -->
     67             <include
     68                 android:id="@+id/contact_detail_container"
     69                 layout="@layout/contact_detail_container"
     70                 android:layout_width="match_parent"
     71                 android:layout_height="match_parent"
     72                 android:layout_marginLeft="16dip"
     73                 android:layout_marginRight="16dip"
     74                 android:layout_marginStart="16dip"
     75                 android:layout_marginEnd="16dip"
     76                 android:layout_marginTop="16dip" />
     77 
     78             <!-- This invisible worker fragment loads the contact's details -->
     79             <fragment
     80                 android:id="@+id/contact_detail_loader_fragment"
     81                 class="com.android.contacts.detail.ContactLoaderFragment"
     82                 android:layout_height="0dip"
     83                 android:layout_width="0dip"
     84                 android:visibility="gone" />
     85         </view>
     86 
     87         <!-- Right panel detail view for Groups tab -->
     88         <view
     89             class="com.android.contacts.widget.TransitionAnimationView"
     90             android:id="@+id/group_details_view"
     91             android:layout_width="0dip"
     92             android:layout_height="match_parent"
     93             android:layout_weight="2"
     94             android:visibility="gone">
     95 
     96             <!-- This is the group detail page -->
     97             <fragment
     98                 android:id="@+id/group_detail_fragment"
     99                 class="com.android.contacts.group.GroupDetailFragment"
    100                 android:layout_width="match_parent"
    101                 android:layout_height="match_parent"
    102                 android:visibility="gone" />
    103         </view>
    104 
    105         <!-- Single panel view under the Favorites tab (Strequent) -->
    106         <FrameLayout
    107             android:id="@+id/favorites_view"
    108             android:layout_width="match_parent"
    109             android:layout_height="match_parent"
    110             android:background="@color/background_primary">
    111 
    112             <fragment
    113                 android:id="@+id/favorites_fragment"
    114                 class="com.android.contacts.list.ContactTileListFragment"
    115                 android:layout_height="match_parent"
    116                 android:layout_width="match_parent"
    117                 android:layout_marginLeft="16dip"
    118                 android:layout_marginRight="16dip"
    119                 android:layout_marginStart="16dip"
    120                 android:layout_marginEnd="16dip" />
    121 
    122         </FrameLayout>
    123 
    124     </LinearLayout>
    125 
    126     <com.android.contacts.widget.InterpolatingLayout
    127         android:id="@+id/contacts_unavailable_view"
    128         android:layout_width="match_parent"
    129         android:layout_height="match_parent"
    130         android:background="@drawable/background_holo_light"
    131         android:visibility="gone">
    132 
    133         <FrameLayout
    134             android:id="@+id/contacts_unavailable_container"
    135             android:layout_height="match_parent"
    136             android:layout_width="match_parent"
    137             ex:layout_narrowParentWidth="800dip"
    138             ex:layout_narrowMarginLeft="80dip"
    139             ex:layout_narrowMarginRight="80dip"
    140             ex:layout_wideParentWidth="1280dip"
    141             ex:layout_wideMarginLeft="200dip"
    142             ex:layout_wideMarginRight="200dip"
    143             android:paddingBottom="20dip" />
    144 
    145     </com.android.contacts.widget.InterpolatingLayout>
    146 </view>
    147