Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3      Copyright (C) 2012 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 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="match_parent"
     20     android:layout_height="match_parent"
     21     android:background="@color/conversation_view_border_color" >
     22 
     23     <com.android.mail.browse.MessageScrollView android:id="@+id/scroll_view"
     24         android:layout_width="match_parent"
     25         android:layout_height="match_parent" >
     26 
     27         <LinearLayout
     28             android:id="@+id/conversation_container"
     29             android:layout_width="match_parent"
     30             android:layout_height="wrap_content"
     31             android:orientation="vertical">
     32 
     33             <include layout="@layout/conversation_view_header"
     34                 android:id="@+id/conv_header"
     35                 android:layout_width="match_parent"
     36                 android:layout_height="wrap_content" />
     37 
     38             <include layout="@layout/card_border" android:id="@+id/top_border" />
     39 
     40             <LinearLayout
     41                 android:layout_width="match_parent"
     42                 android:layout_height="wrap_content"
     43                 style="@style/ConversationViewSideMarginMinusGradientStyle"
     44                 android:orientation="horizontal" >
     45                 <View
     46                     android:layout_width="1dp"
     47                     android:layout_height="match_parent"
     48                     android:background="@color/message_border_gradient_color"/>
     49                 <include layout="@layout/conversation_message_header"
     50                     android:id="@+id/message_header"
     51                     android:layout_width="match_parent"
     52                     android:layout_height="wrap_content" />
     53                 <View
     54                     android:layout_width="1dp"
     55                     android:layout_height="match_parent"
     56                     android:background="@color/message_border_gradient_color"/>
     57             </LinearLayout>
     58 
     59             <!-- base WebView layer -->
     60             <LinearLayout
     61                 android:layout_width="match_parent"
     62                 android:layout_height="wrap_content"
     63                 style="@style/ConversationViewSideMarginMinusGradientStyle"
     64                 android:orientation="horizontal" >
     65                 <View
     66                     android:layout_width="1dp"
     67                     android:layout_height="match_parent"
     68                     android:background="@color/message_border_gradient_color"/>
     69                 <com.android.mail.browse.MessageWebView
     70                     android:id="@+id/webview"
     71                     android:layout_width="match_parent"
     72                     android:layout_height="wrap_content"
     73                     android:scrollbars="none"/>
     74                 <View
     75                     android:layout_width="1dp"
     76                     android:layout_height="match_parent"
     77                     android:background="@color/message_border_gradient_color"/>
     78             </LinearLayout>
     79 
     80             <LinearLayout
     81                 android:layout_width="match_parent"
     82                 android:layout_height="wrap_content"
     83                 style="@style/ConversationViewSideMarginMinusGradientStyle"
     84                 android:orientation="horizontal" >
     85                 <View
     86                     android:layout_width="1dp"
     87                     android:layout_height="match_parent"
     88                     android:background="@color/message_border_gradient_color"/>
     89                 <include
     90                     layout="@layout/conversation_message_footer"
     91                     android:id="@+id/message_footer"
     92                     android:layout_width="match_parent"
     93                     android:layout_height="wrap_content"
     94                     android:visibility="gone" />
     95                 <View
     96                     android:layout_width="1dp"
     97                     android:layout_height="match_parent"
     98                     android:background="@color/message_border_gradient_color"/>
     99             </LinearLayout>
    100 
    101             <include layout="@layout/card_border" android:id="@+id/bottom_border" />
    102 
    103         </LinearLayout>
    104 
    105     </com.android.mail.browse.MessageScrollView>
    106 
    107     <include layout="@layout/conversation_load_spinner"/>
    108 
    109 </FrameLayout>
    110