blob: 90fa6054ad0166161afd9236bfad36a140852c51 (
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
|
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:id="@+id/layout_post_detail_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:descendantFocusability="blocksDescendants">
<org.wordpress.android.util.widgets.CustomSwipeRefreshLayout
android:id="@+id/swipe_to_refresh"
android:layout_width="match_parent"
android:layout_height="match_parent">
<org.wordpress.android.widgets.WPScrollView
android:id="@+id/scroll_view_reader"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipToPadding="false"
android:scrollbarStyle="insideOverlay">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="@dimen/margin_large">
<include
layout="@layout/reader_include_post_detail_header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/layout_post_detail_content"
android:layout_alignRight="@+id/layout_post_detail_content"
android:layout_marginBottom="@dimen/margin_large"
android:layout_marginTop="@dimen/margin_large" />
<include
layout="@layout/reader_include_post_detail_content"
android:layout_below="@+id/layout_post_detail_header"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginLeft="@dimen/reader_detail_margin"
android:layout_marginRight="@dimen/reader_detail_margin" />
<org.wordpress.android.widgets.WPTextView
android:id="@+id/text_related_posts_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/layout_post_detail_content"
android:layout_alignLeft="@+id/layout_post_detail_content"
android:layout_alignRight="@+id/layout_post_detail_content"
android:layout_marginBottom="@dimen/reader_related_post_margin"
android:layout_marginTop="@dimen/reader_related_post_margin"
android:text="@string/reader_label_related_posts"
android:textAllCaps="true"
android:textColor="@color/grey"
android:textSize="@dimen/text_sz_large"
android:textStyle="bold"
android:visibility="gone"
tools:visibility="visible" />
<LinearLayout
android:id="@+id/container_related_posts"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/text_related_posts_label"
android:layout_alignLeft="@+id/layout_post_detail_content"
android:layout_alignRight="@+id/layout_post_detail_content"
android:background="@drawable/reader_related_posts_background"
android:orientation="vertical"
android:visibility="gone"
tools:visibility="visible" />
<View
android:id="@+id/footer_spacer"
android:layout_width="match_parent"
android:layout_height="@dimen/toolbar_height"
android:layout_below="@id/container_related_posts" />
</RelativeLayout>
</org.wordpress.android.widgets.WPScrollView>
</org.wordpress.android.util.widgets.CustomSwipeRefreshLayout>
<include
android:id="@+id/layout_post_detail_footer"
layout="@layout/reader_include_post_detail_footer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" />
<ProgressBar
android:id="@+id/progress_loading"
style="@style/ReaderProgressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:visibility="gone"
tools:visibility="visible" />
</RelativeLayout>
<!-- error message when requesting post fails -->
<org.wordpress.android.widgets.WPTextView
android:id="@+id/text_error"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="@dimen/reader_detail_margin"
android:layout_marginRight="@dimen/reader_detail_margin"
android:drawablePadding="@dimen/margin_small"
android:drawableTop="@drawable/noticon_warning_big_grey"
android:gravity="center"
android:textColor="@color/grey"
android:textSize="@dimen/text_sz_extra_large"
android:visibility="gone"
tools:text="Error message"
tools:visibility="visible" />
<!-- container for webView custom view - this is where fullscreen video will appear -->
<FrameLayout
android:id="@+id/layout_custom_view_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#80000000"
android:visibility="gone" />
</FrameLayout>
|