• 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"
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="240dip"
44            android:layout_height="180dip"
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="0dip"
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:paddingRight="8dp"
87        android:layout_height="match_parent">
88
89        <Button
90            android:id="@+id/edit_slideshow_button"
91            style="?android:attr/buttonStyleSmall"
92            android:layout_width="100dip"
93            android:layout_height="45dip"
94            android:textColor="@android:color/black"
95            android:text="@string/edit" />
96
97        <Button
98            android:id="@+id/send_slideshow_button"
99            style="?android:attr/buttonStyleSmall"
100            android:layout_width="100dip"
101            android:layout_height="45dip"
102            android:textColor="@android:color/black"
103            android:text="@string/send" />
104
105        <Button
106            android:id="@+id/remove_slideshow_button"
107            style="?android:attr/buttonStyleSmall"
108            android:layout_width="100dip"
109            android:layout_height="45dip"
110            android:textColor="@android:color/black"
111            android:text="@string/remove" />
112
113    </LinearLayout>
114</com.android.mms.ui.SlideshowAttachmentView>
115