Home | History | Annotate | Download | only in layout-sw680dp
      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 <FrameLayout
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     xmlns:ex="http://schemas.android.com/apk/res/com.android.contacts"
     20     android:layout_width="match_parent"
     21     android:layout_height="match_parent">
     22 
     23     <LinearLayout
     24         android:id="@+id/main_view"
     25         android:layout_width="match_parent"
     26         android:layout_height="match_parent"
     27         android:orientation="horizontal"
     28         android:splitMotionEvents="true"
     29         android:baselineAligned="false">
     30 
     31         <!-- Left panel browse list for Groups or All tabs -->
     32         <FrameLayout
     33             android:id="@+id/browse_view"
     34             android:layout_width="0dip"
     35             android:layout_height="match_parent"
     36             android:layout_weight="1"
     37             android:background="@drawable/list_background_holo"
     38             android:visibility="gone">
     39 
     40             <!-- All -->
     41             <fragment
     42                 android:id="@+id/all_fragment"
     43                 class="com.android.contacts.list.DefaultContactBrowseListFragment"
     44                 android:layout_height="match_parent"
     45                 android:layout_width="match_parent" />
     46 
     47             <!-- Groups -->
     48             <fragment
     49                 android:id="@+id/groups_fragment"
     50                 class="com.android.contacts.group.GroupBrowseListFragment"
     51                 android:layout_height="match_parent"
     52                 android:layout_width="match_parent" />
     53         </FrameLayout>
     54 
     55         <!-- Right panel detail view for All tab -->
     56         <view
     57             class="com.android.contacts.widget.TransitionAnimationView"
     58             android:id="@+id/contact_details_view"
     59             android:layout_width="0dip"
     60             android:layout_height="match_parent"
     61             android:layout_weight="1"
     62             android:background="@color/background_primary"
     63             android:visibility="gone">
     64 
     65             <!-- This layout includes all possible views needed for a contact detail page -->
     66             <include
     67                 android:id="@+id/contact_detail_container"
     68                 layout="@layout/contact_detail_container"
     69                 android:layout_width="match_parent"
     70                 android:layout_height="match_parent"
     71                 android:layout_marginLeft="16dip"
     72                 android:layout_marginTop="16dip"
     73                 android:layout_marginRight="16dip" />
     74 
     75             <!-- This invisible worker fragment loads the contact's details -->
     76             <fragment
     77                 android:id="@+id/contact_detail_loader_fragment"
     78                 class="com.android.contacts.detail.ContactLoaderFragment"
     79                 android:layout_height="0dip"
     80                 android:layout_width="0dip"
     81                 android:visibility="gone"/>
     82         </view>
     83 
     84         <!-- Right panel detail view for Groups tab -->
     85         <view
     86             class="com.android.contacts.widget.TransitionAnimationView"
     87             android:id="@+id/group_details_view"
     88             android:layout_width="0dip"
     89             android:layout_height="match_parent"
     90             android:layout_weight="1"
     91             android:background="@color/background_primary"
     92             android:visibility="gone">
     93 
     94             <!-- This is the group detail page -->
     95             <fragment
     96                 android:id="@+id/group_detail_fragment"
     97                 class="com.android.contacts.group.GroupDetailFragment"
     98                 android:layout_width="match_parent"
     99                 android:layout_height="match_parent"
    100                 android:visibility="gone" />
    101         </view>
    102 
    103         <!-- Two-panel view under the Favorites tab -->
    104         <LinearLayout
    105             android:id="@+id/favorites_view"
    106             android:layout_width="match_parent"
    107             android:layout_height="match_parent"
    108             android:background="@drawable/list_background_holo"
    109             android:baselineAligned="false">
    110 
    111             <!-- Starred -->
    112             <FrameLayout
    113                 android:layout_width="0dip"
    114                 android:layout_height="match_parent"
    115                 android:layout_weight="10"
    116                 android:background="@drawable/panel_favorites_holo_light">
    117 
    118                 <fragment
    119                     android:id="@+id/favorites_fragment"
    120                     class="com.android.contacts.list.ContactTileListFragment"
    121                     android:layout_height="match_parent"
    122                     android:layout_width="match_parent"
    123                     android:layout_marginRight="16dip"
    124                     android:layout_marginLeft="16dip"/>
    125 
    126             </FrameLayout>
    127 
    128             <!-- Most Frequent -->
    129             <fragment
    130                 android:id="@+id/frequent_fragment"
    131                 class="com.android.contacts.list.ContactTileFrequentFragment"
    132                 android:layout_width="0dip"
    133                 android:layout_height="match_parent"
    134                 android:layout_weight="8"
    135                 android:layout_marginTop="16dip"
    136                 android:layout_marginRight="16dip"/>
    137 
    138         </LinearLayout>
    139 
    140     </LinearLayout>
    141 
    142     <com.android.contacts.widget.InterpolatingLayout
    143         android:id="@+id/contacts_unavailable_view"
    144         android:layout_width="match_parent"
    145         android:layout_height="match_parent"
    146         android:visibility="gone">
    147 
    148         <FrameLayout
    149             android:id="@+id/contacts_unavailable_container"
    150             android:layout_height="match_parent"
    151             android:layout_width="match_parent"
    152             ex:layout_narrowParentWidth="800dip"
    153             ex:layout_narrowMarginLeft="80dip"
    154             ex:layout_narrowMarginRight="80dip"
    155             ex:layout_wideParentWidth="1280dip"
    156             ex:layout_wideMarginLeft="200dip"
    157             ex:layout_wideMarginRight="200dip"
    158             android:paddingBottom="20dip" />
    159 
    160     </com.android.contacts.widget.InterpolatingLayout>
    161 </FrameLayout>
    162