Dave Santoro | 3915600 | 2011-07-19 01:18:14 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2011 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 | --> |
| 16 | |
| 17 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | android:layout_width="match_parent" |
| 19 | android:layout_height="wrap_content" |
Mindy Pereira | 5ab5f86 | 2011-08-25 12:03:43 -0700 | [diff] [blame] | 20 | android:orientation="vertical" |
| 21 | android:paddingLeft="@dimen/detail_update_section_side_padding" |
Fabrice Di Meglio | 7d3b915 | 2013-04-04 19:49:34 -0700 | [diff] [blame] | 22 | android:paddingRight="@dimen/detail_update_section_side_padding" |
| 23 | android:paddingStart="@dimen/detail_update_section_side_padding" |
| 24 | android:paddingEnd="@dimen/detail_update_section_side_padding"> |
Dave Santoro | 3915600 | 2011-07-19 01:18:14 -0700 | [diff] [blame] | 25 | |
Makoto Onuki | da9cdc1 | 2012-02-27 16:11:50 -0800 | [diff] [blame] | 26 | <!-- Clickable area --> |
Mindy Pereira | 570d3a1 | 2011-08-30 14:00:44 -0700 | [diff] [blame] | 27 | <LinearLayout |
Dave Santoro | 3915600 | 2011-07-19 01:18:14 -0700 | [diff] [blame] | 28 | android:id="@+id/stream_item_content" |
| 29 | android:layout_width="match_parent" |
| 30 | android:layout_height="wrap_content" |
Makoto Onuki | 4d26eee | 2012-03-05 18:24:04 -0800 | [diff] [blame] | 31 | android:paddingLeft="@dimen/detail_update_section_item_horizontal_padding" |
| 32 | android:paddingRight="@dimen/detail_update_section_item_horizontal_padding" |
Fabrice Di Meglio | 7d3b915 | 2013-04-04 19:49:34 -0700 | [diff] [blame] | 33 | android:paddingStart="@dimen/detail_update_section_item_horizontal_padding" |
| 34 | android:paddingEnd="@dimen/detail_update_section_item_horizontal_padding" |
Makoto Onuki | 4d26eee | 2012-03-05 18:24:04 -0800 | [diff] [blame] | 35 | android:paddingTop="@dimen/detail_update_section_item_vertical_padding" |
Makoto Onuki | 7bc25c6 | 2012-05-09 15:49:35 -0700 | [diff] [blame] | 36 | android:paddingBottom="@dimen/detail_update_section_item_vertical_padding" |
Makoto Onuki | 7b45613 | 2011-08-18 19:05:21 -0700 | [diff] [blame] | 37 | android:background="?android:attr/selectableItemBackground" |
Mindy Pereira | 570d3a1 | 2011-08-30 14:00:44 -0700 | [diff] [blame] | 38 | android:orientation="vertical" |
Makoto Onuki | da9cdc1 | 2012-02-27 16:11:50 -0800 | [diff] [blame] | 39 | > |
| 40 | |
| 41 | <!-- Images --> |
| 42 | <LinearLayout |
| 43 | android:id="@+id/stream_item_image_rows" |
| 44 | android:layout_width="match_parent" |
| 45 | android:layout_height="wrap_content" |
Makoto Onuki | da9cdc1 | 2012-02-27 16:11:50 -0800 | [diff] [blame] | 46 | android:paddingBottom="@dimen/detail_update_section_between_items_vertical_padding" |
| 47 | android:layout_gravity="center_vertical" |
| 48 | android:orientation="vertical" |
| 49 | > |
| 50 | </LinearLayout> |
| 51 | |
| 52 | <!-- Text --> |
| 53 | <TextView android:id="@+id/stream_item_html" |
| 54 | android:layout_width="match_parent" |
| 55 | android:layout_height="wrap_content" |
| 56 | android:textSize="16sp" |
Fabrice Di Meglio | 7d3b915 | 2013-04-04 19:49:34 -0700 | [diff] [blame] | 57 | android:textColor="?android:attr/textColorPrimary" |
| 58 | android:textAlignment="viewStart" /> |
Makoto Onuki | 205a3b6 | 2012-04-17 16:10:22 -0700 | [diff] [blame] | 59 | <!-- |
| 60 | Attribution (e.g. timestamp) and comments (e.g. +1, like) should align horizontally. |
| 61 | Can't merge this with the parent list view. |
| 62 | --> |
| 63 | <LinearLayout |
| 64 | android:layout_width="match_parent" |
Makoto Onuki | da9cdc1 | 2012-02-27 16:11:50 -0800 | [diff] [blame] | 65 | android:layout_height="wrap_content" |
Makoto Onuki | 205a3b6 | 2012-04-17 16:10:22 -0700 | [diff] [blame] | 66 | android:orientation="horizontal" |
| 67 | > |
| 68 | <TextView android:id="@+id/stream_item_attribution" |
| 69 | android:layout_width="wrap_content" |
| 70 | android:layout_height="wrap_content" |
| 71 | android:textAppearance="?android:attr/textAppearanceSmall" |
| 72 | android:textColor="?android:attr/textColorSecondary" |
| 73 | android:ellipsize="end" |
| 74 | android:maxLines="1" /> |
| 75 | <TextView android:id="@+id/stream_item_comments" |
| 76 | android:layout_width="wrap_content" |
| 77 | android:layout_height="wrap_content" |
Fabrice Di Meglio | 7d3b915 | 2013-04-04 19:49:34 -0700 | [diff] [blame] | 78 | android:layout_marginLeft="@dimen/detail_update_section_attribution_comments_padding" |
| 79 | android:layout_marginStart="@dimen/detail_update_section_attribution_comments_padding" |
Makoto Onuki | 205a3b6 | 2012-04-17 16:10:22 -0700 | [diff] [blame] | 80 | android:textAppearance="?android:attr/textAppearanceSmall" |
| 81 | android:textColor="?android:attr/textColorSecondary" |
| 82 | android:maxLines="1"/> |
| 83 | </LinearLayout> |
Makoto Onuki | da9cdc1 | 2012-02-27 16:11:50 -0800 | [diff] [blame] | 84 | </LinearLayout> |
Dave Santoro | 3915600 | 2011-07-19 01:18:14 -0700 | [diff] [blame] | 85 | |
| 86 | <View |
| 87 | android:id="@+id/horizontal_divider" |
| 88 | android:layout_width="match_parent" |
| 89 | android:layout_height="1px" |
Mindy Pereira | 19f64f8 | 2011-08-28 11:53:02 -0700 | [diff] [blame] | 90 | android:background="?android:attr/dividerHorizontal" |
| 91 | android:layout_gravity="bottom" /> |
Flavio Lerda | fd43cdd | 2011-08-05 04:56:44 +0100 | [diff] [blame] | 92 | |
Dave Santoro | 3915600 | 2011-07-19 01:18:14 -0700 | [diff] [blame] | 93 | </LinearLayout> |