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 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/scroll_view"
     18     android:orientation="vertical"
     19     android:layout_width="300dip"
     20     android:layout_height="match_parent">
     21 
     22     <LinearLayout android:orientation="vertical"
     23             android:layout_width="match_parent"
     24             android:layout_height="wrap_content"
     25             android:paddingLeft="5dip"
     26             android:paddingRight="5dip"
     27             android:paddingBottom="10dp">
     28 
     29         <LinearLayout android:orientation="horizontal"
     30                 android:gravity="center_vertical"
     31                 android:layout_width="match_parent"
     32                 android:layout_height="wrap_content">
     33 
     34             <LinearLayout android:orientation="horizontal"
     35                     android:gravity="center_vertical"
     36                     android:layout_width="wrap_content"
     37                     android:layout_height="wrap_content"
     38                     android:background="@drawable/detail_photo_border">
     39                 <ImageView android:id="@+id/details_thumbnail_image"
     40                         android:layout_width="64dip"
     41                         android:layout_height="64dip"/>
     42             </LinearLayout>
     43             <TextView android:id="@+id/details_image_title"
     44                     android:layout_height="wrap_content"
     45                     android:layout_width="wrap_content"
     46                     android:textAppearance="?android:attr/textAppearanceMedium"
     47                     android:paddingLeft="6dip"
     48                     android:layout_weight="1"/>
     49 
     50         </LinearLayout>
     51         <TableLayout android:layout_width="match_parent"
     52                 android:layout_height="wrap_content"
     53                 android:paddingLeft="5dip"
     54                 android:layout_marginTop="10dip">
     55 
     56             <TableRow>
     57                 <TextView android:gravity="right"
     58                         android:textAppearance="?android:attr/textAppearanceSmall"
     59                         android:text="@string/details_file_size"/>
     60                 <TextView android:id="@+id/details_file_size_value"
     61                         android:textAppearance="?android:attr/textAppearanceSmall"
     62                         android:paddingLeft="5dip"
     63                         android:textColor="?android:attr/textColorPrimary"/>
     64             </TableRow>
     65 
     66             <TableRow android:id="@+id/details_resolution_row">
     67                 <TextView android:gravity="right"
     68                         android:textAppearance="?android:attr/textAppearanceSmall"
     69                         android:text="@string/details_image_resolution"/>
     70                 <TextView android:id="@+id/details_resolution_value"
     71                         android:layout_height="wrap_content"
     72                         android:layout_width="match_parent"
     73                         android:textAppearance="?android:attr/textAppearanceSmall"
     74                         android:paddingLeft="5dip"
     75                         android:textColor="?android:attr/textColorPrimary"/>
     76             </TableRow>
     77             <TableRow android:id="@+id/details_make_row">
     78                 <TextView android:gravity="right"
     79                         android:textAppearance="?android:attr/textAppearanceSmall"
     80                         android:text="@string/details_image_make"/>
     81                 <TextView android:id="@+id/details_make_value"
     82                         android:layout_height="wrap_content"
     83                         android:layout_width="match_parent"
     84                         android:textAppearance="?android:attr/textAppearanceSmall"
     85                         android:paddingLeft="5dip"
     86                         android:textColor="?android:attr/textColorPrimary"/>
     87             </TableRow>
     88             <TableRow android:id="@+id/details_model_row">
     89                 <TextView android:gravity="right"
     90                         android:textAppearance="?android:attr/textAppearanceSmall"
     91                         android:text="@string/details_image_model"/>
     92                 <TextView android:id="@+id/details_model_value"
     93                         android:layout_height="wrap_content"
     94                         android:layout_width="match_parent"
     95                         android:textAppearance="?android:attr/textAppearanceSmall"
     96                         android:paddingLeft="5dip"
     97                         android:textColor="?android:attr/textColorPrimary"/>
     98             </TableRow>
     99             <TableRow android:id="@+id/details_whitebalance_row">
    100                 <TextView android:gravity="right"
    101                         android:textAppearance="?android:attr/textAppearanceSmall"
    102                         android:text="@string/details_image_whitebalance"/>
    103                 <TextView android:id="@+id/details_whitebalance_value"
    104                         android:layout_height="wrap_content"
    105                         android:layout_width="match_parent"
    106                         android:textAppearance="?android:attr/textAppearanceSmall"
    107                         android:paddingLeft="5dip"
    108                         android:textColor="?android:attr/textColorPrimary"/>
    109             </TableRow>
    110             <TableRow android:id="@+id/details_latitude_row">
    111                 <TextView android:gravity="right"
    112                         android:textAppearance="?android:attr/textAppearanceSmall"
    113                         android:text="@string/details_image_latitude"/>
    114                 <TextView android:id="@+id/details_latitude_value"
    115                         android:layout_height="wrap_content"
    116                         android:layout_width="match_parent"
    117                         android:textAppearance="?android:attr/textAppearanceSmall"
    118                         android:paddingLeft="5dip"
    119                         android:textColor="?android:attr/textColorPrimary"/>
    120             </TableRow>
    121             <TableRow android:id="@+id/details_longitude_row"> <TextView
    122                         android:gravity="right"
    123                         android:textAppearance="?android:attr/textAppearanceSmall"
    124                         android:text="@string/details_image_longitude"/>
    125                 <TextView android:id="@+id/details_longitude_value"
    126                         android:layout_height="wrap_content"
    127                         android:layout_width="match_parent"
    128                         android:textAppearance="?android:attr/textAppearanceSmall"
    129                         android:paddingLeft="5dip"
    130                         android:textColor="?android:attr/textColorPrimary"/>
    131             </TableRow>
    132             <TableRow android:id="@+id/details_location_row">
    133                 <TextView android:gravity="right"
    134                         android:textAppearance="?android:attr/textAppearanceSmall"
    135                         android:text="@string/details_image_location"/>
    136                 <TextView android:id="@+id/details_location_value"
    137                         android:layout_height="wrap_content"
    138                         android:layout_width="match_parent"
    139                         android:textAppearance="?android:attr/textAppearanceSmall"
    140                         android:paddingLeft="5dip"
    141                         android:textColor="?android:attr/textColorPrimary"/>
    142             </TableRow>
    143             <TableRow android:id="@+id/details_duration_row">
    144                 <TextView android:gravity="right"
    145                         android:textAppearance="?android:attr/textAppearanceSmall"
    146                         android:text="@string/details_duration"/>
    147                 <TextView android:id="@+id/details_duration_value"
    148                         android:textAppearance="?android:attr/textAppearanceSmall"
    149                         android:paddingLeft="5dip"
    150                         android:textColor="?android:attr/textColorPrimary"/>
    151             </TableRow>
    152             <TableRow android:id="@+id/details_frame_rate_row">
    153                 <TextView android:gravity="right"
    154                         android:textAppearance="?android:attr/textAppearanceSmall"
    155                         android:text="@string/details_frame_rate"/>
    156                 <TextView android:id="@+id/details_frame_rate_value"
    157                         android:textAppearance="?android:attr/textAppearanceSmall"
    158                         android:paddingLeft="5dip"
    159                         android:textColor="?android:attr/textColorPrimary"/>
    160             </TableRow>
    161 
    162             <TableRow android:id="@+id/details_bit_rate_row">
    163                 <TextView android:gravity="right"
    164                         android:textAppearance="?android:attr/textAppearanceSmall"
    165                         android:text="@string/details_bit_rate"/>
    166                 <TextView android:id="@+id/details_bit_rate_value"
    167                         android:textAppearance="?android:attr/textAppearanceSmall"
    168                         android:paddingLeft="5dip"
    169                         android:textColor="?android:attr/textColorPrimary"/>
    170             </TableRow>
    171             <TableRow android:id="@+id/details_format_row">
    172                 <TextView android:gravity="right"
    173                         android:textAppearance="?android:attr/textAppearanceSmall"
    174                         android:text="@string/details_format"/>
    175                 <TextView android:id="@+id/details_format_value"
    176                         android:textAppearance="?android:attr/textAppearanceSmall"
    177                         android:paddingLeft="5dip"
    178                         android:textColor="?android:attr/textColorPrimary"/>
    179             </TableRow>
    180             <TableRow android:id="@+id/details_codec_row">
    181                 <TextView android:gravity="right"
    182                         android:textAppearance="?android:attr/textAppearanceSmall"
    183                         android:text="@string/details_codec"/>
    184                 <TextView android:id="@+id/details_codec_value"
    185                         android:textAppearance="?android:attr/textAppearanceSmall"
    186                         android:paddingLeft="5dip"
    187                         android:textColor="?android:attr/textColorPrimary"/>
    188             </TableRow>
    189             <TableRow android:id="@+id/details_date_taken_row">
    190                 <TextView android:gravity="right"
    191                         android:textAppearance="?android:attr/textAppearanceSmall"
    192                         android:text="@string/details_date_taken"/>
    193                 <TextView android:id="@+id/details_date_taken_value"
    194                         android:textAppearance="?android:attr/textAppearanceSmall"
    195                         android:paddingLeft="5dip"
    196                         android:textColor="?android:attr/textColorPrimary"/>
    197             </TableRow>
    198         </TableLayout>
    199     </LinearLayout>
    200 </ScrollView>
    201