blob: c5d2c0e8de7e792924640c105ef5443cd5efaff8 [file] [log] [blame]
Dave Santoro39156002011-07-19 01:18:14 -07001<?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 Pereira5ab5f862011-08-25 12:03:43 -070020 android:orientation="vertical"
21 android:paddingLeft="@dimen/detail_update_section_side_padding"
22 android:paddingRight="@dimen/detail_update_section_side_padding">
Dave Santoro39156002011-07-19 01:18:14 -070023
Makoto Onukida9cdc12012-02-27 16:11:50 -080024 <!-- Clickable area -->
Mindy Pereira570d3a12011-08-30 14:00:44 -070025 <LinearLayout
Dave Santoro39156002011-07-19 01:18:14 -070026 android:id="@+id/stream_item_content"
27 android:layout_width="match_parent"
28 android:layout_height="wrap_content"
Makoto Onuki4d26eee2012-03-05 18:24:04 -080029 android:paddingLeft="@dimen/detail_update_section_item_horizontal_padding"
30 android:paddingRight="@dimen/detail_update_section_item_horizontal_padding"
31 android:paddingTop="@dimen/detail_update_section_item_vertical_padding"
Makoto Onuki7bc25c62012-05-09 15:49:35 -070032 android:paddingBottom="@dimen/detail_update_section_item_vertical_padding"
Makoto Onuki7b456132011-08-18 19:05:21 -070033 android:background="?android:attr/selectableItemBackground"
Mindy Pereira570d3a12011-08-30 14:00:44 -070034 android:orientation="vertical"
Makoto Onukida9cdc12012-02-27 16:11:50 -080035 >
36
37 <!-- Images -->
38 <LinearLayout
39 android:id="@+id/stream_item_image_rows"
40 android:layout_width="match_parent"
41 android:layout_height="wrap_content"
Makoto Onukida9cdc12012-02-27 16:11:50 -080042 android:paddingBottom="@dimen/detail_update_section_between_items_vertical_padding"
43 android:layout_gravity="center_vertical"
44 android:orientation="vertical"
45 >
46 </LinearLayout>
47
48 <!-- Text -->
49 <TextView android:id="@+id/stream_item_html"
50 android:layout_width="match_parent"
51 android:layout_height="wrap_content"
52 android:textSize="16sp"
53 android:textColor="?android:attr/textColorPrimary" />
Makoto Onuki205a3b62012-04-17 16:10:22 -070054 <!--
55 Attribution (e.g. timestamp) and comments (e.g. +1, like) should align horizontally.
56 Can't merge this with the parent list view.
57 -->
58 <LinearLayout
59 android:layout_width="match_parent"
Makoto Onukida9cdc12012-02-27 16:11:50 -080060 android:layout_height="wrap_content"
Makoto Onuki205a3b62012-04-17 16:10:22 -070061 android:orientation="horizontal"
62 >
63 <TextView android:id="@+id/stream_item_attribution"
64 android:layout_width="wrap_content"
65 android:layout_height="wrap_content"
66 android:textAppearance="?android:attr/textAppearanceSmall"
67 android:textColor="?android:attr/textColorSecondary"
68 android:ellipsize="end"
69 android:maxLines="1" />
70 <TextView android:id="@+id/stream_item_comments"
71 android:layout_width="wrap_content"
72 android:layout_height="wrap_content"
73 android:layout_marginLeft=
74 "@dimen/detail_update_section_attribution_comments_padding"
75 android:textAppearance="?android:attr/textAppearanceSmall"
76 android:textColor="?android:attr/textColorSecondary"
77 android:maxLines="1"/>
78 </LinearLayout>
Makoto Onukida9cdc12012-02-27 16:11:50 -080079 </LinearLayout>
Dave Santoro39156002011-07-19 01:18:14 -070080
81 <View
82 android:id="@+id/horizontal_divider"
83 android:layout_width="match_parent"
84 android:layout_height="1px"
Mindy Pereira19f64f82011-08-28 11:53:02 -070085 android:background="?android:attr/dividerHorizontal"
86 android:layout_gravity="bottom" />
Flavio Lerdafd43cdd2011-08-05 04:56:44 +010087
Dave Santoro39156002011-07-19 01:18:14 -070088</LinearLayout>