diff options
author | stefan-niedermann <info@niedermann.it> | 2019-09-15 17:36:33 +0300 |
---|---|---|
committer | stefan-niedermann <info@niedermann.it> | 2019-09-15 17:36:33 +0300 |
commit | 909158959a36e4778de6eb0b53930d11bf81d35c (patch) | |
tree | 21f4c92dd3324da0bc292f79eb325a4801d3259b /app | |
parent | d64993f785fa1dc3c4dd63ad450a66484d9428f0 (diff) |
Enable swipe2refresh for empty notes view
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/res/layout/fragment_stack.xml | 57 |
1 files changed, 31 insertions, 26 deletions
diff --git a/app/src/main/res/layout/fragment_stack.xml b/app/src/main/res/layout/fragment_stack.xml index 23aab4eb6..13c2d51ed 100644 --- a/app/src/main/res/layout/fragment_stack.xml +++ b/app/src/main/res/layout/fragment_stack.xml @@ -1,41 +1,46 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" - xmlns:app="http://schemas.android.com/apk/res-auto" android:orientation="vertical"> - <LinearLayout - android:id="@+id/no_cards" + <androidx.swiperefreshlayout.widget.SwipeRefreshLayout + android:id="@+id/swipe_refresh_layout" android:layout_width="match_parent" - android:layout_height="match_parent" - android:visibility="gone"> + android:layout_height="wrap_content"> - <androidx.appcompat.widget.AppCompatTextView + <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_gravity="center" - app:drawableTopCompat="@drawable/ic_launcher_foreground" - app:drawableTint="@color/grey600" - android:textSize="20sp" - android:text="@string/no_cards" + android:orientation="vertical"> - android:textAlignment="center" /> - </LinearLayout> + <LinearLayout + android:id="@+id/no_cards" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:visibility="gone"> - <androidx.swiperefreshlayout.widget.SwipeRefreshLayout - android:id="@+id/swipe_refresh_layout" - android:layout_width="match_parent" - android:layout_height="wrap_content"> + <androidx.appcompat.widget.AppCompatTextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:text="@string/no_cards" + android:textAlignment="center" + android:textSize="20sp" + app:drawableTint="@color/grey600" + app:drawableTopCompat="@drawable/ic_launcher_foreground" /> + </LinearLayout> - <androidx.recyclerview.widget.RecyclerView - android:id="@+id/recycler_view" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:clipToPadding="false" - android:paddingTop="@dimen/standard_half_padding" - android:paddingBottom="@dimen/standard_half_padding" - android:scrollbarStyle="outsideOverlay" - android:scrollbars="vertical" /> + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/recycler_view" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:clipToPadding="false" + android:paddingTop="@dimen/standard_half_padding" + android:paddingBottom="@dimen/standard_half_padding" + android:scrollbarStyle="outsideOverlay" + android:scrollbars="vertical" /> + </LinearLayout> </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> </LinearLayout>
\ No newline at end of file |