1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2012 Google Inc. 4 Licensed to The Android Open Source Project. 5 6 Licensed under the Apache License, Version 2.0 (the "License"); 7 you may not use this file except in compliance with the License. 8 You may obtain a copy of the License at 9 10 http://www.apache.org/licenses/LICENSE-2.0 11 12 Unless required by applicable law or agreed to in writing, software 13 distributed under the License is distributed on an "AS IS" BASIS, 14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 See the License for the specific language governing permissions and 16 limitations under the License. 17--> 18<com.android.mail.browse.MessageInviteView 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:layout_marginTop="16dp" 23 android:layout_marginLeft="16dp" 24 android:layout_marginRight="16dp" 25 android:orientation="vertical" 26 android:divider="?android:attr/dividerHorizontal" 27 android:showDividers="middle" 28 android:background="@drawable/attachment_bg_holo"> 29 30 <LinearLayout 31 android:layout_width="match_parent" 32 android:layout_height="48dp" 33 android:gravity="center_vertical" 34 android:divider="?android:attr/dividerVertical" 35 android:showDividers="middle" 36 android:dividerPadding="8dp" 37 android:orientation="horizontal"> 38 39 <TextView 40 android:id="@+id/invite_title" 41 android:layout_width="0dp" 42 android:layout_height="wrap_content" 43 android:layout_weight="1" 44 android:padding="8dp" 45 android:text="@string/message_invite_title" /> 46 47 <Button 48 android:id="@+id/invite_calendar_view" 49 android:layout_width="wrap_content" 50 android:layout_height="match_parent" 51 android:layout_weight="0" 52 android:text="@string/message_invite_calendar_view" 53 style="@style/MessageAttachmentButtonStyle" /> 54 55 </LinearLayout> 56 57 <LinearLayout 58 android:layout_width="match_parent" 59 android:layout_height="wrap_content" 60 android:gravity="center_vertical" 61 android:divider="?android:attr/dividerVertical" 62 android:showDividers="middle" 63 android:dividerPadding="8dp" 64 android:orientation="horizontal"> 65 66 <TextView 67 android:layout_width="wrap_content" 68 android:layout_height="wrap_content" 69 android:layout_marginLeft="16dp" 70 android:layout_marginRight="16dp" 71 android:layout_weight="2" 72 android:singleLine="true" 73 android:text="@string/message_invite_label_attending" /> 74 75 <Button 76 android:id="@+id/accept" 77 android:text="@string/message_invite_accept" 78 style="@style/MessageAttachmentButtonStyle" /> 79 80 <Button 81 android:id="@+id/tentative" 82 android:text="@string/message_invite_tentative" 83 style="@style/MessageAttachmentButtonStyle" /> 84 85 <Button 86 android:id="@+id/decline" 87 android:text="@string/message_invite_decline" 88 style="@style/MessageAttachmentButtonStyle" /> 89 90 </LinearLayout> 91 92</com.android.mail.browse.MessageInviteView> 93