blob: 33840b6e508c31caca810e5b541bc6c12edf5a13 [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"
Fabrice Di Meglio7d3b9152013-04-04 19:49:34 -070022 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 Santoro39156002011-07-19 01:18:14 -070025
Makoto Onukida9cdc12012-02-27 16:11:50 -080026 <!-- Clickable area -->
Mindy Pereira570d3a12011-08-30 14:00:44 -070027 <LinearLayout
Dave Santoro39156002011-07-19 01:18:14 -070028 android:id="@+id/stream_item_content"
29 android:layout_width="match_parent"
30 android:layout_height="wrap_content"
Makoto Onuki4d26eee2012-03-05 18:24:04 -080031 android:paddingLeft="@dimen/detail_update_section_item_horizontal_padding"
32 android:paddingRight="@dimen/detail_update_section_item_horizontal_padding"
Fabrice Di Meglio7d3b9152013-04-04 19:49:34 -070033 android:paddingStart="@dimen/detail_update_section_item_horizontal_padding"
34 android:paddingEnd="@dimen/detail_update_section_item_horizontal_padding"
Makoto Onuki4d26eee2012-03-05 18:24:04 -080035 android:paddingTop="@dimen/detail_update_section_item_vertical_padding"
Makoto Onuki7bc25c62012-05-09 15:49:35 -070036 android:paddingBottom="@dimen/detail_update_section_item_vertical_padding"
Makoto Onuki7b456132011-08-18 19:05:21 -070037 android:background="?android:attr/selectableItemBackground"
Mindy Pereira570d3a12011-08-30 14:00:44 -070038 android:orientation="vertical"
Makoto Onukida9cdc12012-02-27 16:11:50 -080039 >
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 Onukida9cdc12012-02-27 16:11:50 -080046 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 Meglio7d3b9152013-04-04 19:49:34 -070057 android:textColor="?android:attr/textColorPrimary"
58 android:textAlignment="viewStart" />
Makoto Onuki205a3b62012-04-17 16:10:22 -070059 <!--
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 Onukida9cdc12012-02-27 16:11:50 -080065 android:layout_height="wrap_content"
Makoto Onuki205a3b62012-04-17 16:10:22 -070066 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 Meglio7d3b9152013-04-04 19:49:34 -070078 android:layout_marginLeft="@dimen/detail_update_section_attribution_comments_padding"
79 android:layout_marginStart="@dimen/detail_update_section_attribution_comments_padding"
Makoto Onuki205a3b62012-04-17 16:10:22 -070080 android:textAppearance="?android:attr/textAppearanceSmall"
81 android:textColor="?android:attr/textColorSecondary"
82 android:maxLines="1"/>
83 </LinearLayout>
Makoto Onukida9cdc12012-02-27 16:11:50 -080084 </LinearLayout>
Dave Santoro39156002011-07-19 01:18:14 -070085
86 <View
87 android:id="@+id/horizontal_divider"
88 android:layout_width="match_parent"
89 android:layout_height="1px"
Mindy Pereira19f64f82011-08-28 11:53:02 -070090 android:background="?android:attr/dividerHorizontal"
91 android:layout_gravity="bottom" />
Flavio Lerdafd43cdd2011-08-05 04:56:44 +010092
Dave Santoro39156002011-07-19 01:18:14 -070093</LinearLayout>