Welcome to mirror list, hosted at ThFree Co, Russian Federation.

activity_notes_list_view.xml « layout « res « main « src « app - github.com/stefan-niedermann/nextcloud-notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5286b2f08e7e6803b119f0bce64a9b8d2b3b361b (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
<?xml version="1.0" encoding="utf-8"?>
<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:id="@+id/activity_notes_list_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <com.google.android.material.appbar.AppBarLayout
            android:id="@+id/appBar"
            android:layout_width="match_parent"
            android:layout_height="?attr/actionBarSize"
            app:elevation="0dp">

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

                <com.google.android.material.card.MaterialCardView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginStart="@dimen/spacer_activity_sides"
                    android:layout_marginTop="@dimen/spacer_1hx"
                    android:layout_marginEnd="@dimen/spacer_activity_sides"
                    android:layout_marginBottom="@dimen/spacer_1hx"
                    app:cardBackgroundColor="@color/appbar"
                    app:cardCornerRadius="@dimen/spacer_4x"
                    app:cardElevation="2dp"
                    app:strokeWidth="0dp">

                    <androidx.appcompat.widget.Toolbar
                        android:id="@+id/home_toolbar"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:orientation="horizontal"
                        app:contentInsetStartWithNavigation="0dp"
                        app:titleMarginStart="0dp">

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

                            <com.google.android.material.textview.MaterialTextView
                                android:id="@+id/search_text"
                                android:layout_width="0dp"
                                android:layout_height="wrap_content"
                                android:layout_gravity="center_vertical"
                                android:layout_weight="1"
                                android:ellipsize="end"
                                android:gravity="start"
                                android:lines="1"
                                android:textSize="16sp"
                                tools:text="@string/search_in_all" />

                            <androidx.appcompat.widget.AppCompatImageView
                                android:id="@+id/sorting_method"
                                android:layout_width="?attr/actionBarSize"
                                android:layout_height="?attr/actionBarSize"
                                android:layout_gravity="center_vertical|end"
                                android:background="?attr/selectableItemBackgroundBorderless"
                                android:contentDescription="@string/action_sorting_method"
                                android:padding="@dimen/spacer_2x"
                                android:tint="?attr/colorAccent"
                                android:translationX="@dimen/spacer_1x"
                                app:srcCompat="@drawable/alphabetical_asc" />

                            <androidx.appcompat.widget.AppCompatImageView
                                android:id="@+id/launchAccountSwitcher"
                                android:layout_width="?attr/actionBarSize"
                                android:layout_height="?attr/actionBarSize"
                                android:layout_gravity="center_vertical|end"
                                android:background="?attr/selectableItemBackgroundBorderless"
                                android:padding="12dp"
                                android:tooltipText="@string/manage_accounts"
                                app:srcCompat="@drawable/ic_account_circle_grey_24dp"
                                tools:targetApi="o" />
                        </LinearLayout>
                    </androidx.appcompat.widget.Toolbar>

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

                <androidx.appcompat.widget.Toolbar
                    android:id="@+id/search_toolbar"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_marginStart="@dimen/spacer_activity_sides"
                    android:layout_marginEnd="@dimen/spacer_activity_sides"
                    android:visibility="gone"
                    app:contentInsetStartWithNavigation="0dp"
                    app:navigationIcon="@drawable/ic_arrow_back_grey600_24dp"
                    app:titleMarginStart="0dp"
                    tools:title="@string/app_name">

                    <androidx.appcompat.widget.SearchView
                        android:id="@+id/search_view"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content" />
                </androidx.appcompat.widget.Toolbar>
            </FrameLayout>
        </com.google.android.material.appbar.AppBarLayout>

        <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
            android:id="@+id/swiperefreshlayout"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            tools:context="it.niedermann.owncloud.notes.main.MainActivity">

            <FrameLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent">

                <include
                    android:id="@+id/empty_content_view"
                    layout="@layout/empty_content_view" />

                <ProgressBar
                    android:id="@+id/progress_circular"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:indeterminateTint="@color/defaultBrand"
                    tools:visibility="gone" />

                <androidx.recyclerview.widget.RecyclerView
                    android:id="@+id/recycler_view"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:scrollbars="vertical"
                    tools:listitem="@layout/item_notes_list_note_item_with_excerpt" />
            </FrameLayout>
        </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

    </LinearLayout>

    <com.google.android.material.floatingactionbutton.FloatingActionButton
        android:id="@+id/fab_create"
        style="?attr/floatingActionButtonPrimaryStyle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="end|bottom"
        android:layout_margin="@dimen/spacer_2x"
        android:contentDescription="@string/action_create"
        android:title="@string/action_create"
        app:backgroundTint="@color/defaultBrand"
        app:srcCompat="@drawable/ic_add_white_24dp" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>