]> git.ktnx.net Git - mobile-ledger-staging.git/blobdiff - app/src/main/res/layout/main_app_layout.xml
assign click handler at runtime
[mobile-ledger-staging.git] / app / src / main / res / layout / main_app_layout.xml
index e9c7138b9f1593044167f8899d6e3689ed27de4d..a33fc7b34b1a79c606d26b49e4ecb7e2fbdc61dc 100644 (file)
@@ -36,7 +36,9 @@
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintEnd_toEndOf="parent"
         app:maxImageSize="36dp"
-        app:srcCompat="@drawable/ic_add_white_24dp" />
+        app:srcCompat="@drawable/ic_add_white_24dp"
+        android:contentDescription="@string/new_transaction_fab_description"
+        />
 
     <androidx.drawerlayout.widget.DrawerLayout
         android:id="@+id/drawer_layout"
                 app:layout_constraintStart_toStartOf="parent"
                 app:layout_constraintTop_toBottomOf="@id/toolbar">
 
-                <LinearLayout
-                    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:textAppearance="@android:style/TextAppearance.Material.Small"
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:paddingStart="8dp"
-                        android:paddingEnd="8dp"
-                        android:text="@string/transactions_last_update_label"
-                        />
-
-                    <TextView
-                        android:id="@+id/transactions_last_update"
-                        android:textAppearance="@android:style/TextAppearance.Material.Small"
-                        android:layout_width="0dp"
-                        android:layout_height="wrap_content"
-                        android:layout_weight="1"
-                        android:text="\?"
-                        tools:ignore="HardcodedText" />
-                </LinearLayout>
-
                 <LinearLayout
                     android:id="@+id/transaction_progress_layout"
                     android:layout_width="match_parent"
                         android:layout_weight="1"
                         android:indeterminate="true"
                         android:padding="0dp"
+                        android:min="0"
                         android:progressTint="?colorPrimary"
                         app:layout_constraintEnd_toEndOf="parent"
                         app:layout_constraintStart_toStartOf="parent" />
                         android:background="@drawable/ic_clear_accent_24dp"
                         android:clickable="true"
                         android:focusable="true"
-                        android:onClick="onStopTransactionRefreshClick" />
+                        />
                 </LinearLayout>
 
             </LinearLayout>
 
             <View
                 android:layout_width="0dp"
-                android:layout_height="4dp"
+                android:layout_height="?attr/main_header_shadow_height"
                 android:background="@drawable/drop_shadow"
                 app:layout_constraintEnd_toEndOf="parent"
                 app:layout_constraintStart_toStartOf="parent"