• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3/*
4 * Copyright (C) 2006-2008 Esmertec AG.
5 * Copyright (C) 2006-2008 The Android Open Source Project
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 *      http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19-->
20
21<com.android.mms.ui.SlideshowAttachmentView xmlns:android="http://schemas.android.com/apk/res/android"
22    android:id="@+id/slideshow_attachment_view_landscape"
23    android:layout_width="match_parent"
24    android:layout_height="wrap_content"
25    android:orientation="horizontal"
26    android:paddingRight="5dip"
27    android:background="@drawable/attachment_editor_bg">
28
29    <!-- This LinearLayout is used to push the send and edit button to the right of the
30         screen.
31    -->
32    <LinearLayout
33        android:layout_width="wrap_content"
34        android:layout_height="wrap_content"
35        android:layout_weight="1"
36        android:gravity="center">
37
38        <!-- This FrameLayout makes the play_slideshow_button on the top of slideshow
39             image and text, and puts the picture_frame exactly around the slideshow
40             image.
41        -->
42        <FrameLayout
43            android:layout_width="200dip"
44            android:layout_height="100dip"
45            android:layout_gravity="center"
46            android:background="@android:drawable/picture_frame" >
47
48            <LinearLayout
49                android:orientation="vertical"
50                android:layout_width="match_parent"
51                android:layout_height="match_parent">
52
53                <ImageView
54                    android:id="@+id/slideshow_image"
55                    android:layout_width="match_parent"
56                    android:layout_height="match_parent"
57                    android:layout_weight="1" />
58
59                <TextView
60                    android:id="@+id/slideshow_text"
61                    android:layout_width="match_parent"
62                    android:layout_height="wrap_content"
63                    android:textColor="@drawable/text_color_black" />
64
65            </LinearLayout>
66
67            <LinearLayout
68                android:layout_width="match_parent"
69                android:layout_height="match_parent"
70                android:gravity="center">
71
72                <ImageButton
73                    android:id="@+id/play_slideshow_button"
74                    android:layout_width="wrap_content"
75                    android:layout_height="wrap_content"
76                    android:src="@drawable/mms_play_btn" />
77
78            </LinearLayout>
79        </FrameLayout>
80    </LinearLayout>
81
82    <LinearLayout
83        android:orientation="vertical"
84        android:gravity="center_vertical"
85        android:layout_width="wrap_content"
86        android:layout_height="match_parent">
87
88        <Button
89            android:id="@+id/edit_slideshow_button"
90            style="?android:attr/buttonStyleSmall"
91            android:layout_width="80dip"
92            android:layout_height="32dip"
93            android:text="@string/edit" />
94
95        <Button
96            android:id="@+id/send_slideshow_button"
97            style="?android:attr/buttonStyleSmall"
98            android:layout_width="80dip"
99            android:layout_height="32dip"
100            android:text="@string/send" />
101
102    </LinearLayout>
103</com.android.mms.ui.SlideshowAttachmentView>
104