98 lines
3.8 KiB
XML
98 lines
3.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Copyright 2023 Tusky Contributors
|
|
~
|
|
~ This file is a part of Tusky.
|
|
~
|
|
~ This program is free software; you can redistribute it and/or modify it under the terms of the
|
|
~ GNU General Public License as published by the Free Software Foundation; either version 3 of the
|
|
~ License, or (at your option) any later version.
|
|
~
|
|
~ Tusky is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
|
~ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
|
~ Public License for more details.
|
|
~
|
|
~ You should have received a copy of the GNU General Public License along with Tusky; if not,
|
|
~ see <http://www.gnu.org/licenses>.
|
|
-->
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout 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:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?android:attr/colorBackground">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/appBarOptions"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/colorSurface"
|
|
app:elevation="0dp">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/topButtonsLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/buttonClear"
|
|
style="@style/TuskyButton.TextButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/notifications_clear"
|
|
android:textSize="?attr/status_text_medium" />
|
|
|
|
<Button
|
|
android:id="@+id/buttonFilter"
|
|
style="@style/TuskyButton.TextButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/notifications_apply_filter"
|
|
android:textSize="?attr/status_text_medium" />
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_gravity="bottom"
|
|
android:background="?android:attr/listDivider"
|
|
app:layout_scrollFlags="scroll|enterAlways" />
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
android:id="@+id/swipeRefreshLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recyclerView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progressBar"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center" />
|
|
|
|
<com.keylesspalace.tusky.view.BackgroundMessageView
|
|
android:id="@+id/statusView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:src="@android:color/transparent"
|
|
android:visibility="gone"
|
|
tools:src="@drawable/elephant_error"
|
|
tools:visibility="visible" />
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|