]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/layout/transaction_list_fragment.xml
fix the shadow under the last update row
[mobile-ledger.git] / app / src / main / res / layout / transaction_list_fragment.xml
index c871f2ad4213e11c25ad64c9aa10489044b026a2..2cd0d99d5d76b67afe42442985dcbdf6dea0e39a 100644 (file)
@@ -20,8 +20,9 @@
     xmlns:tools="http://schemas.android.com/tools"
     android:id="@+id/transaction_list"
     android:layout_width="match_parent"
-    android:layout_height="wrap_content"
+    android:layout_height="match_parent"
     app:layout_behavior="@string/appbar_scrolling_view_behavior"
+    app:layout_constraintBottom_toBottomOf="parent"
     tools:context=".TransactionListActivity">
 
     <LinearLayout
             tools:ignore="HardcodedText" />
     </LinearLayout>
 
-    <View
-        android:id="@+id/view"
-        android:layout_width="0dp"
-        android:layout_height="6dp"
-        android:background="@drawable/drop_shadow"
-        app:layout_constraintTop_toBottomOf="@+id/last_update_row" />
-
     <ProgressBar
         android:id="@+id/transaction_progress_bar"
         style="?android:attr/progressBarStyleHorizontal"
         android:id="@+id/transaction_swipe"
         android:layout_width="match_parent"
         android:layout_height="0dp"
+        app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintTop_toBottomOf="@+id/transaction_progress_bar">
 
         <android.support.v7.widget.RecyclerView
             android:id="@+id/transaction_root"
             android:layout_width="match_parent"
-            android:layout_height="match_parent" />
+            android:layout_height="match_parent"
+            android:scrollbars="vertical" />
     </android.support.v4.widget.SwipeRefreshLayout>
+
+    <View
+        android:id="@+id/view"
+        android:layout_width="0dp"
+        android:layout_height="4dp"
+        android:background="@drawable/drop_shadow"
+        app:layout_constraintTop_toBottomOf="@+id/last_update_row" />
 </android.support.constraint.ConstraintLayout>