]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/layout/activity_new_transaction.xml
replace <fragment> with FragmentContainerView as recommended
[mobile-ledger.git] / app / src / main / res / layout / activity_new_transaction.xml
index 3ff1415afdac1e9e682c0154017568815bcd2c71..d95d8fb00e340eea936848640f588f9b76c05735 100644 (file)
@@ -29,7 +29,6 @@
 
         <TextView
             android:id="@+id/simulationLabel"
-            style="@style/StretchedTextView"
             android:layout_width="0dp"
             android:layout_height="0dp"
             android:layout_margin="@dimen/activity_horizontal_margin"
             android:rotation="-45"
             android:text="@string/simulation_label"
             android:textAlignment="center"
-            android:textColor="@color/table_row_dark_bg"
+            android:textColor="?attr/table_row_dark_bg"
             android:textIsSelectable="false"
             android:textSize="36sp"
             android:textStyle="bold"
+            android:visibility="gone"
             app:layout_constraintBottom_toBottomOf="parent"
             app:layout_constraintEnd_toEndOf="parent"
             app:layout_constraintStart_toStartOf="parent"
             <androidx.appcompat.widget.Toolbar
                 android:id="@+id/toolbar"
                 android:layout_width="match_parent"
-                android:layout_height="?attr/actionBarSize"
+                android:layout_height="@dimen/toolbar_height"
                 android:background="?attr/colorPrimary"
                 app:popupTheme="@style/AppTheme.PopupOverlay" />
 
         </com.google.android.material.appbar.AppBarLayout>
 
-        <fragment
+        <androidx.fragment.app.FragmentContainerView
             android:id="@+id/new_transaction_nav"
             android:name="androidx.navigation.fragment.NavHostFragment"
             android:layout_width="0dp"
             android:layout_height="0dp"
+            app:defaultNavHost="true"
             app:layout_constraintBottom_toBottomOf="parent"
             app:layout_constraintEnd_toEndOf="parent"
             app:layout_constraintStart_toStartOf="parent"