summaryrefslogtreecommitdiff
path: root/org.fox.ttrss/src/main/res/layout/fragment_article.xml
blob: 0fe8163bdc1da885a979149baec0461638864725 (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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<com.otaliastudios.nestedscrollcoordinatorlayout.NestedScrollCoordinatorLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:background="?colorSurfaceContainer"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <com.google.android.material.appbar.AppBarLayout
        android:layout_width="match_parent"
        android:background="?colorSurfaceContainer"
        android:layout_height="wrap_content">

        <com.google.android.material.card.MaterialCardView
            app:layout_scrollFlags="scroll|enterAlways"
            app:strokeWidth="0dp"
            app:shapeAppearance="@style/ShapeAppearanceArticleHeader"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

        <LinearLayout
            android:id="@+id/article_header"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <LinearLayout
                android:orientation="horizontal"
                android:layout_marginStart="16dp"
                android:layout_marginEnd="16dp"
                android:layout_width="match_parent"
                android:layout_height="match_parent">

                <TextView
                    android:id="@+id/title"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:textColor="?colorPrimary"
                    tools:text="Unreasonably long article title blah blah blah blah blah blah"
                    android:textSize="18sp"
                    android:gravity="start" />

            </LinearLayout>

            <TextView
                android:id="@+id/comments"
                android:layout_marginStart="16dp"
                android:layout_marginEnd="16dp"
                tools:text="comments"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:textAlignment="viewStart"
                android:layout_weight="1"
                android:fontFamily="sans-serif-light"
                android:layout_marginTop="8dp"
                android:textColor="?colorPrimary"
                android:textSize="12sp" />

            <TextView
                android:id="@+id/link_host"
                android:layout_marginStart="16dp"
                android:layout_marginEnd="16dp"
                tools:text="example.com"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:textAlignment="viewStart"
                android:layout_weight="1"
                android:fontFamily="sans-serif-light"
                android:layout_marginTop="8dp"
                android:textColor="?colorPrimary"
                android:textSize="12sp" />

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginStart="16dp"
                android:layout_marginEnd="16dp"
                android:layout_marginBottom="8dp"
                android:layout_marginTop="8dp">

                <TextView
                    android:id="@+id/tags"
                    tools:text="alpha, beta, gamma"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="0.7"
                    android:ellipsize="middle"
                    android:textAlignment="viewStart"
                    android:singleLine="true"
                    android:fontFamily="sans-serif-light"
                    android:textColor="?colorSecondary"
                    android:textSize="12sp" />

                <TextView
                    android:id="@+id/date"
                    tools:text="Jan 01, 1970"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="0.3"
                    android:textAlignment="viewEnd"
                    android:fontFamily="sans-serif-light"
                    android:textAppearance="?android:attr/textAppearanceSmall"
                    android:textColor="?colorSecondary"
                    android:textSize="12sp" />

            </LinearLayout>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <com.google.android.material.card.MaterialCardView
                    android:id="@+id/note_container"
                    android:layout_width="match_parent"
                    app:cardBackgroundColor="?colorTertiaryContainer"
                    android:layout_margin="8dp"
                    app:strokeWidth="0dp"
                    android:layout_height="match_parent">

                    <LinearLayout
                        android:layout_width="match_parent"
                        android:layout_margin="8dp"
                        android:layout_height="wrap_content">

                        <TextView
                            android:id="@+id/note"
                            tools:text="Article note (if any...)"
                            android:layout_gravity="center_vertical"
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:layout_marginEnd="8dp"
                            android:textColor="?colorOnTertiaryContainer"
                            android:layout_weight="1"
                            android:textSize="12sp"/>

                        <ImageView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_gravity="center_vertical"
                            app:tint="?colorOnTertiaryContainer"
                            android:src="@drawable/baseline_note_24"/>

                    </LinearLayout>
                </com.google.android.material.card.MaterialCardView>

            </LinearLayout>
        </LinearLayout>
        </com.google.android.material.card.MaterialCardView>

    </com.google.android.material.appbar.AppBarLayout>

    <com.telefonica.nestedscrollwebview.NestedScrollWebView
        android:id="@+id/article_content"
        app:layout_behavior="@string/appbar_scrolling_view_behavior"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

</com.otaliastudios.nestedscrollcoordinatorlayout.NestedScrollCoordinatorLayout>