Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2010 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 <!-- Use a full-screen popup window because UI has some intermediate problems
     18      when its size is changed. -->
     19 <FrameLayout
     20         xmlns:android="http://schemas.android.com/apk/res/android"
     21         xmlns:camera="http://schemas.android.com/apk/res/com.android.camera"
     22         android:layout_width="match_parent"
     23         android:layout_height="match_parent"
     24         android:background="@color/share_popup_background">
     25     <FrameLayout android:id="@+id/root"
     26             android:layout_width="wrap_content"
     27             android:layout_height="wrap_content"
     28             android:layout_gravity="left|center">
     29         <RelativeLayout android:id="@+id/share_view"
     30                 android:layout_width="match_parent"
     31                 android:layout_height="match_parent"
     32                 android:background="@drawable/border_last_picture">
     33             <com.android.camera.ui.RotateLayout
     34                     android:id="@+id/thumbnail_rotate_layout"
     35                     android:layout_width="wrap_content"
     36                     android:layout_height="wrap_content"
     37                     android:layout_alignParentTop="true"
     38                     android:layout_alignParentLeft="true">
     39                 <!-- The size of the thumbnail is calculated in SharePopup.java -->
     40                 <FrameLayout
     41                         android:layout_width="wrap_content"
     42                         android:layout_height="wrap_content" >
     43                     <ImageView android:id="@+id/thumbnail"
     44                             android:layout_width="wrap_content"
     45                             android:layout_height="wrap_content"
     46                             android:adjustViewBounds="true"
     47                             android:scaleType="fitCenter"/>
     48                     <ImageView android:id="@+id/play"
     49                             android:layout_width="match_parent"
     50                             android:layout_height="match_parent"
     51                             android:layout_gravity="center"
     52                             android:scaleType="center"
     53                             style="@style/ReviewPlayIcon"/>
     54                 </FrameLayout>
     55             </com.android.camera.ui.RotateLayout> 
     56         </RelativeLayout>
     57         <LinearLayout
     58                 android:layout_width="@dimen/share_item_width"
     59                 android:layout_height="match_parent"
     60                 android:orientation="vertical"
     61                 android:layout_gravity="right"
     62                 android:background="@color/share_icon_background">
     63             <com.android.camera.ui.RotateLayout
     64                     android:layout_marginTop="8dip"
     65                     android:id="@+id/goto_gallery_button_rotate"
     66                     android:layout_gravity="center"
     67                     android:layout_width="match_parent"
     68                     android:layout_height="wrap_content" >
     69                 <ImageButton
     70                         android:id="@+id/goto_gallery_button"
     71                         android:background="?android:attr/selectableItemBackground"
     72                         android:layout_gravity="center"
     73                         android:layout_width="wrap_content"
     74                         android:layout_height="wrap_content"
     75                         android:src="@drawable/ic_gallery" />
     76             </com.android.camera.ui.RotateLayout>
     77             <View
     78                     android:layout_width="match_parent"
     79                     android:layout_margin="8dip"
     80                     android:layout_height="1dp"
     81                     android:background="#5affffff" />
     82 
     83             <ListView android:id="@+id/share_list"
     84                     android:layout_width="match_parent"
     85                     android:layout_height="wrap_content"
     86                     android:orientation="vertical"
     87                     android:choiceMode="singleChoice"
     88                     style="@android:style/Widget.Holo.ListView" />
     89         </LinearLayout>
     90     </FrameLayout>
     91 </FrameLayout>
     92