Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3      Copyright (C) 2011 Google Inc.
      4      Licensed to 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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="match_parent"
     20     android:layout_height="match_parent"
     21     android:orientation="vertical">
     22 
     23     <!-- Custom toolbar/search overlay -->
     24     <include layout="@layout/toolbar_with_search" />
     25 
     26     <!-- Main content -->
     27     <FrameLayout
     28         android:layout_width="match_parent"
     29         android:layout_height="match_parent"
     30         android:foreground="?android:attr/windowContentOverlay">
     31 
     32         <com.android.mail.ui.TwoPaneLayout
     33             android:id="@+id/two_pane_activity"
     34             android:layout_width="match_parent"
     35             android:layout_height="match_parent"
     36             android:foregroundGravity="fill_horizontal|top"
     37             android:background="@android:color/white">
     38 
     39             <FrameLayout
     40                 android:id="@+id/drawer"
     41                 android:layout_width="@dimen/two_pane_drawer_width_open"
     42                 android:layout_height="match_parent"
     43                 android:layout_gravity="left">
     44 
     45                 <include layout="@layout/drawer_fragment"
     46                     android:layout_width="match_parent"
     47                     android:layout_height="match_parent" />
     48 
     49             </FrameLayout>
     50 
     51             <FrameLayout
     52                 android:id="@+id/conversation_list_pane"
     53                 android:layout_width="0dp"
     54                 android:layout_height="match_parent"
     55                 android:layout_gravity="left" >
     56 
     57                 <FrameLayout
     58                     android:id="@+id/conversation_list_place_holder"
     59                     android:layout_width="match_parent"
     60                     android:layout_height="match_parent" />
     61 
     62                 <ImageButton
     63                     android:id="@+id/compose_button"
     64                     style="@style/FloatingActionButtonStyle" />
     65 
     66             </FrameLayout>
     67 
     68             <com.android.mail.ui.ConversationViewFrame
     69                 android:id="@+id/conversation_frame"
     70                 android:layout_width="0dp"
     71                 android:layout_height="match_parent"
     72                 android:layout_gravity="left"
     73                 android:foreground="@drawable/ic_vertical_shadow_end_2dp">
     74 
     75                 <FrameLayout
     76                     android:id="@+id/conversation_pane"
     77                     android:layout_width="match_parent"
     78                     android:layout_height="match_parent">
     79 
     80                     <!-- Empty icon view for CV landscape -->
     81                     <ImageView
     82                         android:id="@+id/conversation_pane_no_message_view"
     83                         android:layout_width="wrap_content"
     84                         android:layout_height="wrap_content"
     85                         android:layout_gravity="center"
     86                         android:visibility="gone" />
     87 
     88                     <include layout="@layout/conversation_pager"
     89                         android:layout_width="match_parent"
     90                         android:layout_height="match_parent" />
     91 
     92                 </FrameLayout>
     93 
     94                 <FrameLayout
     95                     android:id="@+id/miscellaneous_pane"
     96                     android:layout_width="match_parent"
     97                     android:layout_height="match_parent" />
     98 
     99             </com.android.mail.ui.ConversationViewFrame>
    100 
    101             <include layout="@layout/floating_actions" />
    102 
    103         </com.android.mail.ui.TwoPaneLayout>
    104 
    105         <include layout="@layout/search_suggestion_list" />
    106 
    107     </FrameLayout>
    108 
    109 </LinearLayout>
    110