]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/layout/content_account_summary.xml
major rework of the async stuff, view model, pull-to-refresh account list
[mobile-ledger.git] / app / src / main / res / layout / content_account_summary.xml
index c30125ee74c0dd9819ed49755348cbfc000e2357..dc59bb5d3afa128bedf2757c8dcd8f11843ebe7d 100644 (file)
@@ -9,79 +9,19 @@
     tools:context=".AccountSummary"
     tools:showIn="@layout/app_bar_account_summary">
 
-    <TextView
-        android:id="@+id/textProgress"
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:text="TextView"
-        android:visibility="gone"
-        app:layout_constraintBottom_toBottomOf="parent"
-        app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintStart_toStartOf="parent"
-        tools:ignore="HardcodedText" />
-
-    <ProgressBar
-        android:id="@+id/progressBar"
-        style="?android:attr/progressBarStyle"
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:layout_marginStart="8dp"
-        android:layout_marginEnd="8dp"
-        android:layout_marginBottom="16dp"
-        android:visibility="gone"
-        app:layout_constraintBottom_toTopOf="@+id/textProgress"
-        app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintStart_toStartOf="parent" />
-
-    <ScrollView
-        android:id="@+id/account_root_scroller"
+    <android.support.v4.widget.SwipeRefreshLayout
+        android:id="@+id/account_swiper"
         android:layout_width="match_parent"
-        android:layout_height="match_parent"
-        app:layout_constraintBottom_toTopOf="@+id/textProgress"
-        app:layout_constraintTop_toTopOf="parent">
+        android:layout_height="match_parent">
 
-        <LinearLayout
+        <android.support.v7.widget.RecyclerView
             android:id="@+id/account_root"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
+            android:choiceMode="multipleChoice"
+            android:drawSelectorOnTop="true"
             android:orientation="vertical">
 
-            <LinearLayout
-                android:layout_width="match_parent"
-                android:layout_height="wrap_content"
-                android:gravity="center_vertical"
-                android:orientation="horizontal">
-
-                <TextView
-                    android:id="@+id/textView"
-                    style="@style/account_summary_account_name"
-                    android:text="Account name, a really long one. A very very very long one. It may even spawn on more than two lines -- three, four or more." />
-
-                <TextView
-                    android:id="@+id/textView2"
-                    style="@style/account_summary_amounts"
-                    android:text="123,45\n678,90" />
-            </LinearLayout>
-
-            <LinearLayout
-                android:layout_width="match_parent"
-                android:layout_height="match_parent"
-                android:gravity="center_vertical"
-                android:orientation="horizontal">
-
-                <TextView
-                    android:id="@+id/textView3"
-                    style="@style/account_summary_account_name"
-                    android:text="TextView" />
-
-                <TextView
-                    android:id="@+id/textView4"
-                    style="@style/account_summary_amounts"
-                    android:text="123,45\n678,90" />
-
-            </LinearLayout>
-
-        </LinearLayout>
-    </ScrollView>
-
+        </android.support.v7.widget.RecyclerView>
+    </android.support.v4.widget.SwipeRefreshLayout>
 </android.support.constraint.ConstraintLayout>
\ No newline at end of file