summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/fragment_subscriptions.xml
blob: 61d33f53473e2c3b21c65ba8885b94eb87bd866d (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
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                xmlns:app="http://schemas.android.com/apk/res-auto"
                android:orientation="vertical"
                android:layout_width="match_parent"
                android:layout_height="match_parent">

    <androidx.appcompat.widget.Toolbar
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:minHeight="?attr/actionBarSize"
            android:theme="?attr/actionBarTheme"
            android:layout_alignParentTop="true"
            app:title="@string/subscriptions_label"
            app:navigationIcon="?homeAsUpIndicator"
            android:id="@+id/toolbar"/>

    <TextView
            android:id="@+id/feeds_filtered_message"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@id/toolbar"
            android:background="?android:attr/selectableItemBackground"
            android:gravity="start"
            android:paddingStart="8dp"
            android:paddingTop="4dp"
            android:paddingEnd="8dp"
            android:paddingBottom="8dp"
            android:textColor="?android:attr/textColorSecondary"
            android:textSize="@dimen/text_size_small" />

    <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
        android:id="@+id/swipeRefresh"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@id/feeds_filtered_message">

        <GridView
                android:id="@+id/subscriptions_grid"
                android:layout_width="match_parent"
                android:numColumns="3"
                android:horizontalSpacing="2dp"
                android:verticalSpacing="2dp"
                android:layout_height="match_parent"
                android:layout_gravity="center_horizontal"
                android:paddingBottom="88dp"
                android:clipToPadding="false"/>

    </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

    <ProgressBar
            android:id="@+id/progLoading"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:indeterminateOnly="true"
            android:visibility="visible"/>

    <com.google.android.material.floatingactionbutton.FloatingActionButton
            android:id="@+id/subscriptions_add"
            android:layout_width="56dp"
            android:layout_height="56dp"
            android:layout_margin="16dp"
            android:layout_alignParentBottom="true"
            android:layout_alignParentEnd="true"
            android:layout_alignParentRight="true"
            android:contentDescription="@string/add_feed_label"
            app:srcCompat="@drawable/ic_add"/>
</RelativeLayout>