share_popup.xml revision 5e270b255775e1aae76cb476873001798ad8e88a
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 <!-- Need a relative layout here because collapse button does not rotate and 25 it is not in the thumbnail. --> 26 <RelativeLayout android:id="@+id/root" 27 android:layout_width="wrap_content" 28 android:layout_height="wrap_content" 29 android:layout_gravity="top|bottom"> 30 <com.android.camera.ui.RotateLayout 31 android:id="@+id/share_view_rotate_layout" 32 android:layout_width="wrap_content" 33 android:layout_height="wrap_content" 34 android:layout_toLeftOf="@+id/thumbnail_rotate_layout"> 35 <!-- The width of the share list is calculated in SharePopup.java. --> 36 <LinearLayout android:id="@+id/share_view" 37 android:layout_width="@dimen/share_list_width_landscape" 38 android:layout_height="@dimen/share_image_max_height_landscape" 39 android:orientation="vertical" 40 android:background="@color/dark_gray" 41 android:paddingLeft="7dp" 42 android:paddingRight="7dp" 43 android:clickable="true"> 44 <TextView android:id="@+id/title" 45 android:layout_width="match_parent" 46 android:layout_height="wrap_content" 47 android:minHeight="44dp" 48 android:gravity="left|center_vertical" 49 android:textAppearance="?android:textAppearanceMedium" 50 android:text="@string/share_picture_via" 51 android:textColor="@android:color/white" 52 android:paddingLeft="4dp" /> 53 <ImageView 54 android:layout_width="match_parent" 55 android:layout_height="1dip" 56 android:scaleType="fitXY" 57 android:gravity="fill_horizontal" 58 android:src="@drawable/divider_strong_holo" /> 59 <ListView android:id="@+id/share_list" 60 android:layout_width="match_parent" 61 android:layout_height="wrap_content" 62 android:orientation="vertical" 63 android:layout_gravity="center" 64 android:choiceMode="singleChoice" 65 style="@android:style/Widget.ListView" /> 66 </LinearLayout> 67 </com.android.camera.ui.RotateLayout> 68 <com.android.camera.ui.RotateLayout 69 android:id="@+id/thumbnail_rotate_layout" 70 android:layout_width="wrap_content" 71 android:layout_height="wrap_content" 72 android:layout_alignParentTop="true" 73 android:layout_alignParentRight="true"> 74 <!-- The size of the thumbnail is calculated in SharePopup.java --> 75 <ImageView android:id="@+id/thumbnail" 76 android:layout_width="wrap_content" 77 android:layout_height="wrap_content" 78 android:adjustViewBounds="true" 79 android:scaleType="fitCenter" 80 android:background="@drawable/border_last_picture" /> 81 </com.android.camera.ui.RotateLayout> 82 </RelativeLayout> 83</FrameLayout> 84