Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3      Copyright (C) 2013 The Android Open Source Project
      4 
      5      Licensed under the Apache License, Version 2.0 (the "License");
      6      you may not use this file except in compliance with the License.
      7      You may obtain a copy of the License at
      8 
      9           http://www.apache.org/licenses/LICENSE-2.0
     10 
     11      Unless required by applicable law or agreed to in writing, software
     12      distributed under the License is distributed on an "AS IS" BASIS,
     13      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14      See the License for the specific language governing permissions and
     15      limitations under the License.
     16 -->
     17 
     18 <LinearLayout
     19     xmlns:android="http://schemas.android.com/apk/res/android"
     20     android:id="@+id/filmstrip_bottom_panel"
     21     android:layout_width="match_parent"
     22     android:layout_height="wrap_content"
     23     android:layout_gravity="bottom"
     24     android:paddingBottom="@dimen/filmstrip_bottom_control_spacing"
     25     android:orientation="horizontal"
     26     android:visibility="visible" >
     27 
     28     <!-- A filler view -->
     29     <View
     30         android:layout_width="0dp"
     31         android:layout_height="1dp"
     32         android:layout_weight="1"
     33         android:visibility="invisible" />
     34 
     35     <FrameLayout
     36         android:layout_width="wrap_content"
     37         android:layout_height="wrap_content">
     38 
     39         <LinearLayout
     40             android:id="@+id/bottom_control_panel"
     41             android:layout_width="wrap_content"
     42             android:layout_height="wrap_content"
     43             android:orientation="horizontal">
     44 
     45             <ImageButton
     46                 android:id="@+id/filmstrip_bottom_control_share"
     47                 style="@style/FilmstripBottomControlButton"
     48                 android:src="@drawable/ic_share"
     49                 android:visibility="invisible"
     50                 android:contentDescription="@string/share_button_description" />
     51 
     52             <LinearLayout
     53                 android:layout_width="@dimen/filmstrip_bottom_control_middle_two_buttons_layout_size"
     54                 android:layout_height="wrap_content"
     55                 android:orientation="horizontal"
     56                 android:visibility="visible">
     57 
     58                 <View
     59                     android:layout_width="0dp"
     60                     android:layout_height="1dp"
     61                     android:layout_weight="1"
     62                     android:visibility="invisible" />
     63 
     64                 <com.android.camera.widget.ExternalViewerButton
     65                     android:id="@+id/filmstrip_bottom_control_view"
     66                     style="@style/FilmstripBottomControlButton"
     67                     android:layout_gravity="center"
     68                     android:src="@drawable/ic_view_photosphere"
     69                     android:visibility="gone"
     70                     android:contentDescription="@string/view_button_description" />
     71 
     72                 <View
     73                     android:id="@+id/filmstrip_bottom_control_middle_filler"
     74                     android:layout_width="0dp"
     75                     android:layout_height="1dp"
     76                     android:layout_weight="1"
     77                     android:visibility="invisible" />
     78 
     79                 <ImageButton
     80                     android:id="@+id/filmstrip_bottom_control_edit"
     81                     style="@style/FilmstripBottomControlButton"
     82                     android:src="@drawable/ic_menu_edit"
     83                     android:visibility="gone"
     84                     android:contentDescription="@string/edit_button_description" />
     85 
     86                 <View
     87                     android:layout_width="0dp"
     88                     android:layout_height="1dp"
     89                     android:layout_weight="1"
     90                     android:visibility="invisible" />
     91 
     92             </LinearLayout>
     93 
     94             <ImageButton
     95                 android:id="@+id/filmstrip_bottom_control_delete"
     96                 style="@style/FilmstripBottomControlButton"
     97                 android:src="@drawable/ic_menu_trash"
     98                 android:visibility="invisible"
     99                 android:contentDescription="@string/delete_button_description" />
    100         </LinearLayout>
    101 
    102         <!-- The progress error panel -->
    103         <LinearLayout
    104             android:id="@+id/bottom_progress_error_panel"
    105             android:layout_width="@dimen/filmstrip_bottom_control_layout_size"
    106             android:layout_height="@dimen/filmstrip_bottom_control_button_size"
    107             android:layout_gravity="bottom|center_horizontal"
    108             android:gravity="center"
    109             android:visibility="gone"
    110             android:orientation="horizontal">
    111 
    112             <ImageView
    113                 android:src="@drawable/ic_error_normal"
    114                 android:layout_width="wrap_content"
    115                 android:layout_height="wrap_content"
    116                 android:paddingRight="10dp"
    117                 android:scaleType="centerInside"/>
    118 
    119             <TextView
    120                 android:id="@+id/bottom_progress_error_text"
    121                 style="@style/FilmstripBottomProgressText"
    122                 android:layout_width="wrap_content"
    123                 android:layout_height="wrap_content"/>
    124 
    125         </LinearLayout>
    126 
    127         <!-- The progress bar -->
    128         <LinearLayout
    129             android:id="@+id/bottom_progress_panel"
    130             android:layout_width="@dimen/filmstrip_bottom_control_layout_size"
    131             android:layout_height="@dimen/filmstrip_bottom_control_button_size"
    132             android:layout_gravity="bottom|center_horizontal"
    133             android:visibility="gone"
    134             android:orientation="vertical">
    135 
    136             <TextView
    137                 android:id="@+id/bottom_session_progress_text"
    138                 style="@style/FilmstripBottomProgressText"
    139                 android:layout_width="wrap_content"
    140                 android:layout_height="wrap_content"
    141                 android:layout_gravity="center_horizontal"/>
    142 
    143             <ProgressBar
    144                 android:id="@+id/bottom_session_progress_bar"
    145                 style="@android:style/Widget.Holo.Light.ProgressBar.Horizontal"
    146                 android:progressDrawable="@drawable/bottom_progress_bar"
    147                 android:layout_width="match_parent"
    148                 android:layout_height="0dp"
    149                 android:layout_weight="1" />
    150         </LinearLayout>
    151     </FrameLayout>
    152 
    153     <!-- A filler view -->
    154     <View
    155         android:layout_width="0dp"
    156         android:layout_height="1dp"
    157         android:layout_weight="1"
    158         android:visibility="invisible" />
    159 
    160 </LinearLayout>
    161