Home | History | Annotate | Download | only in layout-sw600dp
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2011 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 <!-- tablet -->
     18 
     19 <LinearLayout
     20     xmlns:android="http://schemas.android.com/apk/res/android"
     21     android:layout_width="match_parent"
     22     android:layout_height="64dip"
     23     android:orientation="horizontal"
     24     android:background="@drawable/attachment_bg_holo"
     25     >
     26     <FrameLayout
     27         android:layout_width="64dip"
     28         android:layout_height="64dip"
     29         android:orientation="vertical"
     30         android:background="#e5e5e5"
     31         >
     32         <ImageView
     33             android:id="@+id/attachment_icon"
     34             android:layout_width="match_parent"
     35             android:layout_height="match_parent"
     36             android:src="@drawable/ic_attachment_holo_light"
     37             android:scaleType="center"
     38             />
     39         <ProgressBar
     40             android:id="@+id/progress"
     41             android:layout_width="match_parent"
     42             android:layout_height="wrap_content"
     43             android:padding="0dip"
     44             style="?android:attr/progressBarStyleHorizontal"
     45             android:max="100"
     46             android:visibility="invisible"
     47             />
     48     </FrameLayout>
     49     <LinearLayout
     50         android:layout_width="0dip"
     51         android:layout_height="match_parent"
     52         android:layout_weight="1"
     53         android:orientation="horizontal"
     54         android:divider="?android:attr/dividerVertical"
     55         android:showDividers="middle"
     56         android:dividerPadding="16dip"
     57         >
     58         <RelativeLayout
     59             android:layout_width="0dip"
     60             android:layout_height="wrap_content"
     61             android:layout_weight="1"
     62             android:layout_gravity="center_vertical"
     63             android:layout_marginLeft="32dip"
     64             android:layout_marginRight="16dip"
     65             >
     66             <TextView
     67                 android:id="@+id/attachment_name"
     68                 android:layout_width="wrap_content"
     69                 android:layout_height="wrap_content"
     70                 android:layout_alignParentLeft="true"
     71                 android:textSize="18dip"
     72                 android:textColor="#333333"
     73                 android:singleLine="true"
     74                 android:ellipsize="middle"
     75                 />
     76             <TextView
     77                 android:id="@+id/attachment_info"
     78                 android:layout_width="wrap_content"
     79                 android:layout_height="wrap_content"
     80                 android:layout_alignParentLeft="true"
     81                 android:layout_below="@+id/attachment_name"
     82                 android:textSize="14sp"
     83                 android:textColor="@color/text_secondary_color"
     84                 android:singleLine="true"
     85                 />
     86         </RelativeLayout>
     87 
     88         <!-- Buttons -->
     89         <LinearLayout
     90             android:layout_width="224dip"
     91             android:layout_height="match_parent"
     92             android:layout_weight="0"
     93             android:orientation="horizontal"
     94             android:divider="?android:attr/dividerVertical"
     95             android:showDividers="middle"
     96             >
     97             <Button
     98                 android:id="@+id/load"
     99                 style="@style/Attachment.Button"
    100                 android:text="@string/message_view_attachment_load_action"
    101                 android:visibility="gone"
    102                 />
    103             <Button
    104                 android:id="@+id/cancel"
    105                 style="@style/Attachment.Button"
    106                 android:text="@string/message_view_attachment_cancel_action"
    107                 android:visibility="gone"
    108                 />
    109             <Button
    110                 android:id="@+id/info"
    111                 style="@style/Attachment.Button"
    112                 android:text="@string/message_view_attachment_info_action"
    113                 android:visibility="gone"
    114                 />
    115             <Button
    116                 android:id="@+id/open"
    117                 style="@style/Attachment.Button"
    118                 android:text="@string/message_view_attachment_view_action"
    119                 android:visibility="gone"
    120                 />
    121             <Button
    122                 android:id="@+id/save"
    123                 style="@style/Attachment.Button"
    124                 android:text="@string/message_view_attachment_save_action"
    125                 android:visibility="gone"
    126                 />
    127         </LinearLayout>
    128     </LinearLayout>
    129 </LinearLayout>
    130