]> git.ktnx.net Git - mobile-ledger-staging.git/blobdiff - app/src/main/res/layout/main_app_layout.xml
migrate from ViewPager to ViewPager2
[mobile-ledger-staging.git] / app / src / main / res / layout / main_app_layout.xml
index d9f4b42687224d2cdd19e545ea875ad3141212c3..ab68dcdcb366d5c5d7d1cb5c421d38b8adf4d67a 100644 (file)
@@ -37,6 +37,7 @@
         app:layout_constraintEnd_toEndOf="parent"
         app:maxImageSize="36dp"
         app:srcCompat="@drawable/ic_add_white_24dp"
+        android:contentDescription="@string/new_transaction_fab_description"
         />
 
     <androidx.drawerlayout.widget.DrawerLayout
                 app:layout_constraintStart_toStartOf="parent"
                 app:layout_constraintTop_toBottomOf="@id/toolbar">
 
-                <androidx.constraintlayout.widget.ConstraintLayout
-                    android:id="@+id/transactions_last_update_layout"
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:elevation="24dp"
-                    android:orientation="horizontal"
-                    >
-
-                    <TextView
-                        android:id="@+id/transaction_last_update_label"
-                        android:layout_width="0dp"
-                        android:layout_height="wrap_content"
-                        android:paddingStart="8dp"
-                        android:paddingEnd="8dp"
-                        android:text="@string/transactions_last_update_label"
-                        android:textAppearance="@android:style/TextAppearance.Material.Small"
-                        app:layout_constraintEnd_toStartOf="@id/transactions_last_update"
-                        app:layout_constraintTop_toTopOf="parent"
-                        />
-
-                    <TextView
-                        android:id="@+id/transactions_last_update"
-                        android:layout_width="0dp"
-                        android:layout_height="wrap_content"
-                        android:layout_weight="1"
-                        android:text="\?"
-                        android:textAppearance="@android:style/TextAppearance.Material.Small"
-                        tools:ignore="HardcodedText"
-                        app:layout_constraintEnd_toEndOf="parent"
-                        app:layout_constraintTop_toTopOf="parent"
-                        />
-                </androidx.constraintlayout.widget.ConstraintLayout>
-
                 <LinearLayout
                     android:id="@+id/transaction_progress_layout"
                     android:layout_width="match_parent"
                         android:background="@drawable/ic_clear_accent_24dp"
                         android:clickable="true"
                         android:focusable="true"
-                        android:onClick="onStopTransactionRefreshClick" />
+                        />
                 </LinearLayout>
 
             </LinearLayout>
 
-            <androidx.viewpager.widget.ViewPager
+            <androidx.viewpager2.widget.ViewPager2
                 android:id="@+id/root_frame"
                 android:layout_width="match_parent"
                 android:layout_height="0dp"
                 app:layout_constraintStart_toStartOf="parent"
                 app:layout_constraintTop_toBottomOf="@+id/main_header">
 
-            </androidx.viewpager.widget.ViewPager>
+            </androidx.viewpager2.widget.ViewPager2>
 
             <View
                 android:layout_width="0dp"