Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2008 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 <LinearLayout
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:orientation="vertical"
     20     android:layout_width="match_parent"
     21     android:layout_height="match_parent"
     22     android:background="@android:color/white">
     23     <ScrollView
     24         android:id="@+id/scrollview"
     25         android:layout_width="match_parent"
     26         android:layout_height="0dip"
     27         android:layout_weight="1"
     28         android:scrollbarStyle="outsideOverlay"
     29         android:fadingEdge="none"
     30         android:fillViewport="true">
     31         <LinearLayout
     32             android:orientation="vertical"
     33             android:layout_width="match_parent"
     34             android:layout_height="wrap_content">
     35             <!-- Note, height is 2+35+0.  There is a 4pixel fade on top of header image -->
     36             <LinearLayout
     37                 android:layout_width="match_parent"
     38                 android:layout_height="37dip"
     39                 android:paddingTop="2dip"
     40                 android:background="#101010">
     41                 <ImageButton
     42                     android:id="@+id/moveToNewer"
     43                     android:layout_height="35dip"
     44                     android:layout_width="0dip"
     45                     android:layout_weight="1"
     46                     android:layout_alignParentLeft="true"
     47                     android:layout_alignParentTop="true"
     48                     android:src="@drawable/btn_arrow_left"
     49                     android:scaleType="fitStart" 
     50                     android:paddingLeft="6dip"
     51                     android:background="@drawable/btn_arrow_background"
     52                     android:paddingTop="0dip"
     53                     android:paddingBottom="0dip"
     54                      />
     55                 <ImageButton
     56                     android:id="@+id/moveToOlder"
     57                     android:layout_height="35dip"
     58                     android:layout_width="0dip"
     59                     android:layout_weight="1"
     60                     android:layout_alignParentRight="true"
     61                     android:layout_alignParentTop="true" 
     62                     android:src="@drawable/btn_arrow_right"
     63                     android:scaleType="fitEnd"
     64                     android:paddingRight="9dip"
     65                     android:background="@drawable/btn_arrow_background"
     66                     android:paddingTop="0dip"
     67                     android:paddingBottom="0dip" 
     68                      />
     69             </LinearLayout>
     70 
     71             <include layout="@layout/message_view_header" />
     72 
     73         </LinearLayout>
     74     </ScrollView>
     75     <LinearLayout
     76         android:orientation="horizontal"
     77         android:layout_width="match_parent"
     78         android:layout_height="wrap_content"
     79         android:paddingTop="5dip"
     80         android:paddingLeft="4dip"
     81         android:paddingRight="4dip"
     82         android:paddingBottom="1dip"    
     83         android:background="@android:drawable/bottom_bar">
     84         <Button
     85             android:id="@+id/reply"
     86             android:text="@string/reply_action"
     87             android:layout_height="match_parent"
     88             android:layout_width="0dip"
     89             android:layout_weight="1" />
     90         <Button
     91             android:id="@+id/reply_all"
     92             android:text="@string/reply_all_action"
     93             android:layout_height="match_parent"
     94             android:layout_width="0dip"
     95             android:layout_weight="1" />
     96         <Button
     97             android:id="@+id/delete"
     98             android:text="@string/delete_action"
     99             android:layout_height="match_parent"
    100             android:layout_width="0dip"
    101             android:layout_weight="1" />
    102     </LinearLayout>
    103 </LinearLayout>
    104