Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3     Copyright (C) 2015 The Android Open Source Project
      4 
      5     Licensed under the Apache License, Version 2.0 (the "License");
      6     you may not use this file except in compliance with the License.
      7     You may obtain a copy of the License at
      8 
      9          http://www.apache.org/licenses/LICENSE-2.0
     10 
     11     Unless required by applicable law or agreed to in writing, software
     12     distributed under the License is distributed on an "AS IS" BASIS,
     13     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14     See the License for the specific language governing permissions and
     15     limitations under the License.
     16 -->
     17 <com.android.messaging.ui.conversation.ConversationMessageView
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     xmlns:app="http://schemas.android.com/apk/res-auto"
     20     style="@style/ConversationMessageViewStyle"
     21     android:layout_width="match_parent"
     22     android:layout_height="wrap_content" >
     23 
     24     <com.android.messaging.ui.ContactIconView
     25         android:id="@+id/conversation_icon"
     26         android:layout_width="@dimen/conversation_message_contact_icon_size"
     27         android:layout_height="@dimen/conversation_message_contact_icon_size"
     28         app:iconSize="normal"
     29         android:clickable="true"
     30         android:layout_gravity="center_vertical"
     31         android:importantForAccessibility="no" />
     32 
     33     <com.android.messaging.ui.conversation.ConversationMessageBubbleView
     34         android:id="@+id/message_content"
     35         android:orientation="vertical"
     36         android:layout_width="match_parent"
     37         android:layout_height="wrap_content"
     38         android:layout_gravity="center_vertical">
     39 
     40         <LinearLayout
     41             android:id="@+id/message_attachments"
     42             android:layout_width="wrap_content"
     43             android:layout_height="wrap_content"
     44             android:orientation="vertical"
     45             android:visibility="gone" >
     46 
     47             <!-- Video, audio and vcard attachments (if present) will be added here -->
     48 
     49             <com.android.messaging.ui.MultiAttachmentLayout
     50                 android:id="@+id/multiple_attachments"
     51                 android:layout_width="wrap_content"
     52                 android:layout_height="wrap_content"
     53                 android:visibility="gone" />
     54 
     55             <com.android.messaging.ui.AsyncImageView
     56                 android:id="@+id/message_image"
     57                 android:layout_width="wrap_content"
     58                 android:layout_height="wrap_content"
     59                 android:minWidth="@dimen/conversation_message_photo_min_size"
     60                 android:minHeight="@dimen/conversation_message_photo_min_size"
     61                 android:adjustViewBounds="true"
     62                 android:scaleType="fitCenter"
     63                 android:layout_gravity="center_vertical"
     64                 android:visibility="gone"
     65                 app:placeholderDrawable="@drawable/attachment_image_placeholder_background"
     66                 app:cornerRadius="@dimen/attachment_rounded_corner_radius"
     67                 android:contentDescription="@string/message_image_content_description" />
     68 
     69         </LinearLayout>
     70 
     71         <com.android.messaging.ui.conversation.MessageBubbleBackground
     72             android:id="@+id/message_text_and_info"
     73             android:layout_width="wrap_content"
     74             android:layout_height="wrap_content"
     75             android:orientation="vertical">
     76 
     77             <LinearLayout
     78                 android:id="@+id/message_title_layout"
     79                 android:orientation="vertical"
     80                 android:layout_width="wrap_content"
     81                 android:layout_height="wrap_content"
     82                 android:visibility="gone"
     83                 android:importantForAccessibility="noHideDescendants" >
     84 
     85                 <TextView
     86                     android:id="@+id/message_title"
     87                     android:layout_width="wrap_content"
     88                     android:layout_height="wrap_content"
     89                     style="@style/ConversationMessageTitle" />
     90 
     91                 <TextView
     92                     android:id="@+id/mms_info"
     93                     android:layout_width="wrap_content"
     94                     android:layout_height="wrap_content"
     95                     style="@style/ConversationMessageInfo" />
     96 
     97             </LinearLayout>
     98 
     99             <LinearLayout
    100                 android:id="@+id/subject_container"
    101                 android:orientation="horizontal"
    102                 android:layout_width="wrap_content"
    103                 android:layout_height="wrap_content"
    104                 android:importantForAccessibility="noHideDescendants" >
    105 
    106                 <TextView
    107                     android:id="@+id/subject_label"
    108                     android:text="@string/conversation_message_view_subject_text"
    109                     android:layout_width="wrap_content"
    110                     android:layout_height="wrap_content"
    111                     style="@style/ConversationMessage" />
    112 
    113                 <TextView
    114                     android:id="@+id/subject_text"
    115                     android:layout_width="wrap_content"
    116                     android:layout_height="wrap_content"
    117                     style="@style/ConversationMessage" />
    118 
    119             </LinearLayout>
    120 
    121             <TextView
    122                 android:id="@+id/message_text"
    123                 style="@style/ConversationMessage"
    124                 android:layout_width="wrap_content"
    125                 android:layout_height="wrap_content"
    126                 android:visibility="gone"
    127                 android:importantForAccessibility="no" />
    128 
    129             <com.android.messaging.ui.LineWrapLayout
    130                 android:id="@+id/message_metadata"
    131                 android:orientation="horizontal"
    132                 android:layout_width="wrap_content"
    133                 android:layout_height="wrap_content"
    134                 android:gravity="center_vertical"
    135                 android:importantForAccessibility="noHideDescendants" >
    136 
    137                 <TextView
    138                     android:id="@+id/message_sender_name"
    139                     android:layout_width="wrap_content"
    140                     android:layout_height="wrap_content"
    141                     android:layout_marginRight="4dp"
    142                     style="@style/ConversationMessageStatus"
    143                     android:visibility="gone" />
    144                 <TextView
    145                     android:id="@+id/message_status"
    146                     android:layout_width="wrap_content"
    147                     android:layout_height="wrap_content"
    148                     style="@style/ConversationMessageStatus"
    149                     android:visibility="gone" />
    150                 <TextView
    151                     android:id="@+id/sim_name"
    152                     style="@style/MessageSimIndicator"
    153                     android:layout_width="wrap_content"
    154                     android:layout_height="wrap_content"
    155                     android:layout_weight="1"
    156                     android:visibility="gone" />
    157                 <ImageView
    158                     android:id="@+id/smsDeliveredBadge"
    159                     android:layout_width="wrap_content"
    160                     android:layout_height="wrap_content"
    161                     android:layout_gravity="center"
    162                     style="@style/SmsDeliverdBadge"
    163                     android:src="@drawable/ic_sms_delivery_ok"
    164                     android:visibility="gone" />
    165             </com.android.messaging.ui.LineWrapLayout>
    166 
    167         </com.android.messaging.ui.conversation.MessageBubbleBackground>
    168 
    169     </com.android.messaging.ui.conversation.ConversationMessageBubbleView>
    170 
    171 </com.android.messaging.ui.conversation.ConversationMessageView>
    172