Scott Kennedy | 0e8dc84 | 2013-09-10 11:13:53 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2013 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 | --> |
Andrew Sapperstein | 2b34b5e | 2014-01-23 11:17:48 -0800 | [diff] [blame] | 16 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
Scott Kennedy | 0e8dc84 | 2013-09-10 11:13:53 -0700 | [diff] [blame] | 17 | android:layout_width="match_parent" |
Jin Cao | 4c59495 | 2014-08-19 16:32:42 -0700 | [diff] [blame] | 18 | android:layout_height="wrap_content" |
Jin Cao | 4c59495 | 2014-08-19 16:32:42 -0700 | [diff] [blame] | 19 | android:orientation="vertical"> |
Scott Kennedy | 0e8dc84 | 2013-09-10 11:13:53 -0700 | [diff] [blame] | 20 | |
Scott Kennedy | 0e8dc84 | 2013-09-10 11:13:53 -0700 | [diff] [blame] | 21 | <LinearLayout |
Jin Cao | 4c59495 | 2014-08-19 16:32:42 -0700 | [diff] [blame] | 22 | android:layout_width="match_parent" |
Scott Kennedy | 0e8dc84 | 2013-09-10 11:13:53 -0700 | [diff] [blame] | 23 | android:layout_height="wrap_content" |
Jin Cao | 4c59495 | 2014-08-19 16:32:42 -0700 | [diff] [blame] | 24 | android:minHeight="@dimen/folder_teaser_item_height" |
Rohan Shah | c8926ef | 2014-09-03 13:25:42 -0700 | [diff] [blame] | 25 | android:background="?android:attr/selectableItemBackground" |
| 26 | style="@style/FolderTeaserPaddingEndStyle"> |
Jin Cao | 4c59495 | 2014-08-19 16:32:42 -0700 | [diff] [blame] | 27 | |
| 28 | <ImageView |
| 29 | android:id="@+id/nested_folder_icon" |
| 30 | android:layout_width="@dimen/folder_teaser_start_margin" |
| 31 | android:layout_height="wrap_content" |
| 32 | android:layout_gravity="center_vertical" |
| 33 | android:paddingLeft="24dp" |
| 34 | android:paddingRight="24dp" |
| 35 | android:src="@drawable/ic_drawer_folder_24dp" /> |
| 36 | |
| 37 | <LinearLayout |
| 38 | android:id="@+id/text_layout" |
| 39 | android:layout_width="0dp" |
| 40 | android:layout_height="wrap_content" |
| 41 | android:layout_weight="1" |
| 42 | android:layout_gravity="center_vertical" |
Rohan Shah | 0982080 | 2014-08-22 08:46:51 -0700 | [diff] [blame] | 43 | android:orientation="vertical" |
Rohan Shah | c8926ef | 2014-09-03 13:25:42 -0700 | [diff] [blame] | 44 | style="@style/FolderTeaserPaddingEndStyle"> |
Jin Cao | 4c59495 | 2014-08-19 16:32:42 -0700 | [diff] [blame] | 45 | |
| 46 | <TextView |
| 47 | android:id="@+id/folder_textView" |
| 48 | android:layout_width="wrap_content" |
| 49 | android:layout_height="wrap_content" |
| 50 | android:ellipsize="end" |
| 51 | android:singleLine="true" |
| 52 | android:textSize="16sp" |
Rohan Shah | c8926ef | 2014-09-03 13:25:42 -0700 | [diff] [blame] | 53 | android:textStyle="bold" |
Jin Cao | 4c59495 | 2014-08-19 16:32:42 -0700 | [diff] [blame] | 54 | android:textColor="@color/folder_teaser_main_text"/> |
| 55 | |
| 56 | <TextView |
| 57 | android:id="@+id/senders_textView" |
| 58 | android:layout_width="wrap_content" |
| 59 | android:layout_height="wrap_content" |
| 60 | android:ellipsize="end" |
| 61 | android:singleLine="true" |
| 62 | android:textSize="14sp" |
Rohan Shah | c8926ef | 2014-09-03 13:25:42 -0700 | [diff] [blame] | 63 | android:fontFamily="sans-serif-light" |
Jin Cao | 4c59495 | 2014-08-19 16:32:42 -0700 | [diff] [blame] | 64 | android:textColor="@color/folder_teaser_sub_text" /> |
| 65 | |
| 66 | </LinearLayout> |
Scott Kennedy | 0e8dc84 | 2013-09-10 11:13:53 -0700 | [diff] [blame] | 67 | |
| 68 | <TextView |
Rohan Shah | 6092c62 | 2014-08-21 10:38:35 -0700 | [diff] [blame] | 69 | android:id="@+id/unread_count_textView" |
Scott Kennedy | 0e8dc84 | 2013-09-10 11:13:53 -0700 | [diff] [blame] | 70 | android:layout_width="wrap_content" |
Jin Cao | 4c59495 | 2014-08-19 16:32:42 -0700 | [diff] [blame] | 71 | android:layout_height="match_parent" |
Rohan Shah | 6092c62 | 2014-08-21 10:38:35 -0700 | [diff] [blame] | 72 | style="@style/FolderTeaserUnreadCountTextStyle" /> |
| 73 | |
| 74 | <TextView |
| 75 | android:id="@+id/unseen_count_textView" |
| 76 | android:layout_width="57sp" |
| 77 | android:layout_height="20sp" |
| 78 | style="@style/FolderTeaserUnseenCountTextStyle" /> |
Scott Kennedy | 0e8dc84 | 2013-09-10 11:13:53 -0700 | [diff] [blame] | 79 | |
| 80 | </LinearLayout> |
| 81 | |
Jin Cao | 5b3b0a3 | 2014-08-22 17:52:56 -0700 | [diff] [blame] | 82 | <View style="@style/ConversationListDividerStyle" /> |
Scott Kennedy | 0e8dc84 | 2013-09-10 11:13:53 -0700 | [diff] [blame] | 83 | |
Andrew Sapperstein | 2b34b5e | 2014-01-23 11:17:48 -0800 | [diff] [blame] | 84 | </LinearLayout> |