app/src/main/res/layout/activity_article_list.xml
author Da Risk <da_risk@geekorum.com>
Wed, 12 Jan 2022 17:29:59 -0400
changeset 882 7a74abf66c49
parent 846 ac0863af5ef6
child 898 047d64521f8e
permissions -rw-r--r--
update license headers
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     1
<?xml version="1.0" encoding="utf-8"?>
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     2
<!--
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     3
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     4
    Geekttrss is a RSS feed reader application on the Android Platform.
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     5
882
7a74abf66c49 update license headers
Da Risk <da_risk@geekorum.com>
parents: 846
diff changeset
     6
    Copyright (C) 2017-2022 by Frederic-Charles Barthelery.
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     7
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     8
    This file is part of Geekttrss.
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     9
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    10
    Geekttrss is free software: you can redistribute it and/or modify
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    11
    it under the terms of the GNU General Public License as published by
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    12
    the Free Software Foundation, either version 3 of the License, or
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    13
    (at your option) any later version.
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    14
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    15
    Geekttrss is distributed in the hope that it will be useful,
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    16
    but WITHOUT ANY WARRANTY; without even the implied warranty of
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    17
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    18
    GNU General Public License for more details.
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    19
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    20
    You should have received a copy of the GNU General Public License
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    21
    along with Geekttrss.  If not, see <http://www.gnu.org/licenses/>.
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    22
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    23
-->
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    24
<layout xmlns:android="http://schemas.android.com/apk/res/android"
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    25
    xmlns:app="http://schemas.android.com/apk/res-auto"
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    26
    xmlns:tools="http://schemas.android.com/tools">
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    27
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    28
    <data>
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    29
        <variable
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    30
            name="activityViewModel"
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    31
            type="com.geekorum.ttrss.articles_list.ActivityViewModel" />
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    32
    </data>
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    33
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    34
<androidx.drawerlayout.widget.DrawerLayout
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    35
        android:id="@+id/headlines_drawer"
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    36
        android:fitsSystemWindows="true"
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    37
        android:layout_width="fill_parent"
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    38
        android:layout_height="fill_parent"
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    39
        tools:ignore="InconsistentLayout"
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    40
        tools:context="com.geekorum.ttrss.articles_list.ArticleListActivity" >
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    41
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    42
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    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
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    45
        android:layout_width="match_parent"
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    46
        android:layout_height="match_parent">
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    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
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    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
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    53
            android:layout_width="match_parent"
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    54
            android:layout_height="wrap_content">
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    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"
614
71767f66c503 ArticlesListActivity: add sort icon
Da Risk <da_risk@geekorum.com>
parents: 611
diff changeset
    62
                    app:popupTheme="@style/ThemeOverlay.MaterialComponents.Light"
288
b3c817fbe3e3 Use MaterialToolbar instead of Toolbar everywhere
Da Risk <da_risk@geekorum.com>
parents: 137
diff changeset
    63
                    style="?appBarToolbarStyle"
b3c817fbe3e3 Use MaterialToolbar instead of Toolbar everywhere
Da Risk <da_risk@geekorum.com>
parents: 137
diff changeset
    64
                    />
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    65
826
0e0f09f7e29e app: ArticleListActivity use TagsListBar
Da Risk <da_risk@geekorum.com>
parents: 687
diff changeset
    66
            <androidx.compose.ui.platform.ComposeView
679
058cd58f758c ArticleListActivity: display tags
Da Risk <da_risk@geekorum.com>
parents: 614
diff changeset
    67
                android:id="@+id/tags_list"
058cd58f758c ArticleListActivity: display tags
Da Risk <da_risk@geekorum.com>
parents: 614
diff changeset
    68
                android:layout_width="match_parent"
058cd58f758c ArticleListActivity: display tags
Da Risk <da_risk@geekorum.com>
parents: 614
diff changeset
    69
                android:layout_height="wrap_content"
058cd58f758c ArticleListActivity: display tags
Da Risk <da_risk@geekorum.com>
parents: 614
diff changeset
    70
                app:layout_scrollFlags="scroll|enterAlways"
826
0e0f09f7e29e app: ArticleListActivity use TagsListBar
Da Risk <da_risk@geekorum.com>
parents: 687
diff changeset
    71
                />
679
058cd58f758c ArticleListActivity: display tags
Da Risk <da_risk@geekorum.com>
parents: 614
diff changeset
    72
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    73
        </com.google.android.material.appbar.AppBarLayout>
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    74
489
1af8da6b6f07 ArticleListActivity: use androidx.navigation to go from articles list to search
Da Risk <da_risk@geekorum.com>
parents: 478
diff changeset
    75
        <fragment
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    76
            android:id="@+id/middle_pane_layout"
603
61854435c65c ArticleListActivity: add navigation to ManageFeedsActivity
Da Risk <da_risk@geekorum.com>
parents: 509
diff changeset
    77
            android:name="com.geekorum.ttrss.on_demand_modules.OnDemandModuleNavHostFragment"
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    78
            android:layout_width="match_parent"
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    79
            android:layout_height="match_parent"
489
1af8da6b6f07 ArticleListActivity: use androidx.navigation to go from articles list to search
Da Risk <da_risk@geekorum.com>
parents: 478
diff changeset
    80
            app:navGraph="@navigation/articles_list"
1af8da6b6f07 ArticleListActivity: use androidx.navigation to go from articles list to search
Da Risk <da_risk@geekorum.com>
parents: 478
diff changeset
    81
            app:defaultNavHost="true"
477
005c6a313e4a Small syntax improvement
Da Risk <da_risk@geekorum.com>
parents: 430
diff changeset
    82
            app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    83
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    84
        <com.google.android.material.floatingactionbutton.FloatingActionButton
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    85
            android:id="@+id/fab"
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    86
            android:layout_width="wrap_content"
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    87
            android:layout_height="wrap_content"
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    88
            android:layout_gravity="bottom|end"
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    89
            android:layout_margin="@dimen/fab_margin"
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    90
            android:src="@drawable/ic_refresh"
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    91
            app:fabSize="normal"
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    92
            app:layout_behavior="com.geekorum.geekdroid.views.behaviors.ScrollAwareFABBehavior"
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    93
            android:onClick="@{() -> activityViewModel.refresh()}"
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    94
            />
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    95
478
f33f0b0d6fdd ArticleListActivity add banner container bottom sheet
Da Risk <da_risk@geekorum.com>
parents: 477
diff changeset
    96
        <com.geekorum.geekdroid.views.banners.BannerContainer
f33f0b0d6fdd ArticleListActivity add banner container bottom sheet
Da Risk <da_risk@geekorum.com>
parents: 477
diff changeset
    97
                android:id="@+id/banner_container"
f33f0b0d6fdd ArticleListActivity add banner container bottom sheet
Da Risk <da_risk@geekorum.com>
parents: 477
diff changeset
    98
                android:layout_width="match_parent"
f33f0b0d6fdd ArticleListActivity add banner container bottom sheet
Da Risk <da_risk@geekorum.com>
parents: 477
diff changeset
    99
                android:layout_height="wrap_content"
f33f0b0d6fdd ArticleListActivity add banner container bottom sheet
Da Risk <da_risk@geekorum.com>
parents: 477
diff changeset
   100
                app:layout_behavior="@string/bottom_sheet_behavior"
f33f0b0d6fdd ArticleListActivity add banner container bottom sheet
Da Risk <da_risk@geekorum.com>
parents: 477
diff changeset
   101
                app:behavior_skipCollapsed="true"
f33f0b0d6fdd ArticleListActivity add banner container bottom sheet
Da Risk <da_risk@geekorum.com>
parents: 477
diff changeset
   102
                app:layout_insetEdge="bottom"
f33f0b0d6fdd ArticleListActivity add banner container bottom sheet
Da Risk <da_risk@geekorum.com>
parents: 477
diff changeset
   103
                android:elevation="8dp"
f33f0b0d6fdd ArticleListActivity add banner container bottom sheet
Da Risk <da_risk@geekorum.com>
parents: 477
diff changeset
   104
                tools:layout_height="150dp"
f33f0b0d6fdd ArticleListActivity add banner container bottom sheet
Da Risk <da_risk@geekorum.com>
parents: 477
diff changeset
   105
                android:theme="@style/ThemeOverlay.AppTheme.BottomSheet" />
f33f0b0d6fdd ArticleListActivity add banner container bottom sheet
Da Risk <da_risk@geekorum.com>
parents: 477
diff changeset
   106
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
   107
    </androidx.coordinatorlayout.widget.CoordinatorLayout>
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
   108
836
9ab37149aa9d app: FeedsNavigationMenuPresenter uses compose FeedListNavigationMenu
Da Risk <da_risk@geekorum.com>
parents: 826
diff changeset
   109
    <androidx.compose.ui.platform.ComposeView
9ab37149aa9d app: FeedsNavigationMenuPresenter uses compose FeedListNavigationMenu
Da Risk <da_risk@geekorum.com>
parents: 826
diff changeset
   110
        android:id="@+id/navigation_view"
9ab37149aa9d app: FeedsNavigationMenuPresenter uses compose FeedListNavigationMenu
Da Risk <da_risk@geekorum.com>
parents: 826
diff changeset
   111
        android:layout_width="wrap_content"
9ab37149aa9d app: FeedsNavigationMenuPresenter uses compose FeedListNavigationMenu
Da Risk <da_risk@geekorum.com>
parents: 826
diff changeset
   112
        android:layout_height="match_parent"
9ab37149aa9d app: FeedsNavigationMenuPresenter uses compose FeedListNavigationMenu
Da Risk <da_risk@geekorum.com>
parents: 826
diff changeset
   113
        android:layout_gravity="start"
9ab37149aa9d app: FeedsNavigationMenuPresenter uses compose FeedListNavigationMenu
Da Risk <da_risk@geekorum.com>
parents: 826
diff changeset
   114
        />
0
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
   115
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
   116
</androidx.drawerlayout.widget.DrawerLayout>
14443efede32 Initial commit
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
   117
</layout>