blob: 4e134110060145e1a9ded805ac95cecc37c85fce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
|
<?xml version="1.0" encoding="utf-8"?>
<!--
comment detail displayed from both the notification list and the comment list
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/grey_light">
<ScrollView
android:id="@+id/scroll_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/layout_bottom"
android:fillViewport="true">
<LinearLayout
android:id="@+id/comment_content_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/comment_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="@dimen/margin_extra_large"
android:paddingRight="@dimen/margin_extra_large"
android:paddingTop="@dimen/margin_large"
android:background="@color/white">
<org.wordpress.android.widgets.WPNetworkImageView
android:id="@+id/image_avatar"
style="@style/ReaderImageView.Avatar"
android:layout_marginRight="@dimen/margin_large"
android:layout_marginTop="@dimen/margin_small" />
<org.wordpress.android.widgets.WPTextView
android:id="@+id/text_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/text_date"
android:layout_toRightOf="@+id/image_avatar"
android:background="?android:selectableItemBackground"
android:ellipsize="end"
android:maxLines="1"
android:textColor="@color/reader_hyperlink"
android:textSize="@dimen/text_sz_extra_large"
tools:text="text_name" />
<org.wordpress.android.widgets.WPTextView
android:id="@+id/text_post_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/text_name"
android:layout_below="@+id/text_name"
android:layout_toLeftOf="@+id/text_status"
android:background="?android:selectableItemBackground"
android:ellipsize="end"
android:maxLines="1"
android:paddingBottom="@dimen/margin_extra_small"
android:paddingTop="@dimen/margin_extra_small"
android:textColor="@color/grey_darken_10"
android:textSize="@dimen/text_sz_large"
tools:text="text_post_title" />
<org.wordpress.android.widgets.WPTextView
android:id="@+id/text_date"
style="@style/ReaderTextView.Date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginLeft="@dimen/margin_small"
android:layout_marginTop="@dimen/margin_small"
android:maxLines="1"
tools:text="date" />
<org.wordpress.android.widgets.WPTextView
android:id="@+id/text_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignTop="@+id/text_post_title"
android:layout_marginLeft="@dimen/margin_small"
android:layout_marginTop="@dimen/margin_small"
android:textSize="@dimen/text_sz_small"
android:visibility="visible"
tools:text="STATUS" />
</RelativeLayout>
<!--
textIsSelectable is set to false here to avoid
https://code.google.com/p/android/issues/detail?id=30961
-->
<org.wordpress.android.widgets.WPTextView
android:id="@+id/text_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="@dimen/margin_large"
android:paddingBottom="@dimen/margin_large"
android:paddingLeft="@dimen/margin_extra_large"
android:paddingRight="@dimen/margin_extra_large"
android:textColor="@color/grey_dark"
android:textColorLink="@color/reader_hyperlink"
android:background="@color/white"
android:textIsSelectable="false"
android:textSize="@dimen/text_sz_large"
app:wpFontFamily="merriweather"
tools:text="text_content" />
<View android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@drawable/notifications_list_divider_full_width" />
</LinearLayout>
</ScrollView>
<LinearLayout
android:id="@+id/layout_bottom"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:orientation="vertical">
<include
android:id="@+id/layout_comment_box"
layout="@layout/reader_include_comment_box"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
<ProgressBar
android:id="@+id/progress_loading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:visibility="gone" />
</RelativeLayout>
|