| author | Da Risk <da_risk@geekorum.com> |
| Sun, 22 Sep 2019 01:05:45 -0700 | |
| changeset 478 | f33f0b0d6fdd |
| parent 477 | 005c6a313e4a |
| child 489 | 1af8da6b6f07 |
| permissions | -rw-r--r-- |
| 0 | 1 |
<?xml version="1.0" encoding="utf-8"?> |
2 |
<!-- |
|
3 |
||
4 |
Geekttrss is a RSS feed reader application on the Android Platform. |
|
5 |
||
|
137
5464f07a306c
Update copyright headers for 2019
Da Risk <da_risk@geekorum.com>
parents:
116
diff
changeset
|
6 |
Copyright (C) 2017-2019 by Frederic-Charles Barthelery. |
| 0 | 7 |
|
8 |
This file is part of Geekttrss. |
|
9 |
||
10 |
Geekttrss is free software: you can redistribute it and/or modify |
|
11 |
it under the terms of the GNU General Public License as published by |
|
12 |
the Free Software Foundation, either version 3 of the License, or |
|
13 |
(at your option) any later version. |
|
14 |
||
15 |
Geekttrss is distributed in the hope that it will be useful, |
|
16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
GNU General Public License for more details. |
|
19 |
||
20 |
You should have received a copy of the GNU General Public License |
|
21 |
along with Geekttrss. If not, see <http://www.gnu.org/licenses/>. |
|
22 |
||
23 |
--> |
|
24 |
<layout xmlns:android="http://schemas.android.com/apk/res/android" |
|
25 |
xmlns:app="http://schemas.android.com/apk/res-auto" |
|
26 |
xmlns:tools="http://schemas.android.com/tools"> |
|
27 |
||
28 |
<data> |
|
29 |
<variable |
|
30 |
name="activityViewModel" |
|
31 |
type="com.geekorum.ttrss.articles_list.ActivityViewModel" /> |
|
32 |
</data> |
|
33 |
||
34 |
<androidx.drawerlayout.widget.DrawerLayout |
|
35 |
android:id="@+id/headlines_drawer" |
|
36 |
android:fitsSystemWindows="true" |
|
37 |
android:layout_width="fill_parent" |
|
38 |
android:layout_height="fill_parent" |
|
39 |
tools:ignore="InconsistentLayout" |
|
40 |
tools:context="com.geekorum.ttrss.articles_list.ArticleListActivity" > |
|
41 |
||
42 |
||
43 |
<androidx.coordinatorlayout.widget.CoordinatorLayout |
|
|
430
401b8736155b
ArticleListActivity: setup edge to edge layout
Da Risk <da_risk@geekorum.com>
parents:
427
diff
changeset
|
44 |
android:fitsSystemWindows="true" |
| 0 | 45 |
android:layout_width="match_parent" |
46 |
android:layout_height="match_parent"> |
|
47 |
||
|
430
401b8736155b
ArticleListActivity: setup edge to edge layout
Da Risk <da_risk@geekorum.com>
parents:
427
diff
changeset
|
48 |
<!-- Let the app bar draw the status bar --> |
| 0 | 49 |
<com.google.android.material.appbar.AppBarLayout |
|
116
88a4cb33c865
ArticleListActivity: show appbar when changing feeds
Da Risk <da_risk@geekorum.com>
parents:
0
diff
changeset
|
50 |
android:id="@+id/app_bar" |
|
430
401b8736155b
ArticleListActivity: setup edge to edge layout
Da Risk <da_risk@geekorum.com>
parents:
427
diff
changeset
|
51 |
android:fitsSystemWindows="true" |
|
401b8736155b
ArticleListActivity: setup edge to edge layout
Da Risk <da_risk@geekorum.com>
parents:
427
diff
changeset
|
52 |
app:statusBarForeground="?colorPrimaryDark" |
| 0 | 53 |
android:layout_width="match_parent" |
54 |
android:layout_height="wrap_content"> |
|
55 |
||
|
288
b3c817fbe3e3
Use MaterialToolbar instead of Toolbar everywhere
Da Risk <da_risk@geekorum.com>
parents:
137
diff
changeset
|
56 |
<com.google.android.material.appbar.MaterialToolbar |
|
b3c817fbe3e3
Use MaterialToolbar instead of Toolbar everywhere
Da Risk <da_risk@geekorum.com>
parents:
137
diff
changeset
|
57 |
android:id="@+id/toolbar" |
|
b3c817fbe3e3
Use MaterialToolbar instead of Toolbar everywhere
Da Risk <da_risk@geekorum.com>
parents:
137
diff
changeset
|
58 |
android:layout_width="match_parent" |
|
b3c817fbe3e3
Use MaterialToolbar instead of Toolbar everywhere
Da Risk <da_risk@geekorum.com>
parents:
137
diff
changeset
|
59 |
android:layout_height="wrap_content" |
|
b3c817fbe3e3
Use MaterialToolbar instead of Toolbar everywhere
Da Risk <da_risk@geekorum.com>
parents:
137
diff
changeset
|
60 |
app:layout_scrollFlags="scroll|enterAlways|snap" |
|
374
665f5746a09d
ActivityArticleList: fix search view styles in toolbar
Da Risk <da_risk@geekorum.com>
parents:
288
diff
changeset
|
61 |
android:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar" |
|
288
b3c817fbe3e3
Use MaterialToolbar instead of Toolbar everywhere
Da Risk <da_risk@geekorum.com>
parents:
137
diff
changeset
|
62 |
style="?appBarToolbarStyle" |
|
b3c817fbe3e3
Use MaterialToolbar instead of Toolbar everywhere
Da Risk <da_risk@geekorum.com>
parents:
137
diff
changeset
|
63 |
/> |
| 0 | 64 |
|
65 |
</com.google.android.material.appbar.AppBarLayout> |
|
66 |
||
|
427
9c3bd3ef5ed8
app: use FragmentContainerView instead of FrameLayout
Da Risk <da_risk@geekorum.com>
parents:
374
diff
changeset
|
67 |
<androidx.fragment.app.FragmentContainerView |
| 0 | 68 |
android:id="@+id/middle_pane_layout" |
69 |
android:layout_width="match_parent" |
|
70 |
android:layout_height="match_parent" |
|
| 477 | 71 |
app:layout_behavior="@string/appbar_scrolling_view_behavior"/> |
| 0 | 72 |
|
73 |
||
74 |
<com.google.android.material.floatingactionbutton.FloatingActionButton |
|
75 |
android:id="@+id/fab" |
|
76 |
android:layout_width="wrap_content" |
|
77 |
android:layout_height="wrap_content" |
|
78 |
android:layout_gravity="bottom|end" |
|
79 |
android:layout_margin="@dimen/fab_margin" |
|
80 |
android:src="@drawable/ic_refresh" |
|
81 |
app:fabSize="normal" |
|
82 |
app:layout_behavior="com.geekorum.geekdroid.views.behaviors.ScrollAwareFABBehavior" |
|
83 |
android:onClick="@{() -> activityViewModel.refresh()}"
|
|
84 |
/> |
|
85 |
||
|
478
f33f0b0d6fdd
ArticleListActivity add banner container bottom sheet
Da Risk <da_risk@geekorum.com>
parents:
477
diff
changeset
|
86 |
<com.geekorum.geekdroid.views.banners.BannerContainer |
|
f33f0b0d6fdd
ArticleListActivity add banner container bottom sheet
Da Risk <da_risk@geekorum.com>
parents:
477
diff
changeset
|
87 |
android:id="@+id/banner_container" |
|
f33f0b0d6fdd
ArticleListActivity add banner container bottom sheet
Da Risk <da_risk@geekorum.com>
parents:
477
diff
changeset
|
88 |
android:layout_width="match_parent" |
|
f33f0b0d6fdd
ArticleListActivity add banner container bottom sheet
Da Risk <da_risk@geekorum.com>
parents:
477
diff
changeset
|
89 |
android:layout_height="wrap_content" |
|
f33f0b0d6fdd
ArticleListActivity add banner container bottom sheet
Da Risk <da_risk@geekorum.com>
parents:
477
diff
changeset
|
90 |
app:layout_behavior="@string/bottom_sheet_behavior" |
|
f33f0b0d6fdd
ArticleListActivity add banner container bottom sheet
Da Risk <da_risk@geekorum.com>
parents:
477
diff
changeset
|
91 |
app:behavior_skipCollapsed="true" |
|
f33f0b0d6fdd
ArticleListActivity add banner container bottom sheet
Da Risk <da_risk@geekorum.com>
parents:
477
diff
changeset
|
92 |
app:layout_insetEdge="bottom" |
|
f33f0b0d6fdd
ArticleListActivity add banner container bottom sheet
Da Risk <da_risk@geekorum.com>
parents:
477
diff
changeset
|
93 |
android:elevation="8dp" |
|
f33f0b0d6fdd
ArticleListActivity add banner container bottom sheet
Da Risk <da_risk@geekorum.com>
parents:
477
diff
changeset
|
94 |
tools:layout_height="150dp" |
|
f33f0b0d6fdd
ArticleListActivity add banner container bottom sheet
Da Risk <da_risk@geekorum.com>
parents:
477
diff
changeset
|
95 |
android:theme="@style/ThemeOverlay.AppTheme.BottomSheet" /> |
|
f33f0b0d6fdd
ArticleListActivity add banner container bottom sheet
Da Risk <da_risk@geekorum.com>
parents:
477
diff
changeset
|
96 |
|
| 0 | 97 |
</androidx.coordinatorlayout.widget.CoordinatorLayout> |
98 |
||
|
427
9c3bd3ef5ed8
app: use FragmentContainerView instead of FrameLayout
Da Risk <da_risk@geekorum.com>
parents:
374
diff
changeset
|
99 |
<androidx.fragment.app.FragmentContainerView |
| 0 | 100 |
android:id="@+id/start_pane_layout" |
101 |
android:layout_width="300dp" |
|
102 |
android:layout_height="match_parent" |
|
103 |
android:layout_gravity="start" |
|
104 |
android:fitsSystemWindows="true" |
|
105 |
/> |
|
106 |
||
107 |
</androidx.drawerlayout.widget.DrawerLayout> |
|
108 |
</layout> |