]> git.ktnx.net Git - mobile-ledger.git/commitdiff
remove unnecessary FrameLayout with a single child
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 14 Jun 2020 12:28:25 +0000 (15:28 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 16 Jun 2020 05:23:36 +0000 (05:23 +0000)
app/src/main/res/layout/account_summary_row.xml

index c375c90edae28e3eca4a98d0f36f7a07f2ab4b21..da058361e50503d8ffef8d00babefe0f50d0cb42 100644 (file)
@@ -2,7 +2,7 @@
 
 
 <!--
-  ~ Copyright © 2019 Damyan Ivanov.
+  ~ Copyright © 2020 Damyan Ivanov.
   ~ This file is part of MoLe.
   ~ MoLe is free software: you can distribute it and/or modify it
   ~ under the term of the GNU General Public License as published by
   ~ You should have received a copy of the GNU General Public License
   ~ along with MoLe. If not, see <https://www.gnu.org/licenses/>.
   -->
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:id="@+id/account_summary_row"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
+    android:longClickable="true"
+    android:minHeight="@dimen/thumb_row_height"
     >
-
-    <androidx.constraintlayout.widget.ConstraintLayout xmlns:app="http://schemas.android.com/apk/res-auto"
-        xmlns:tools="http://schemas.android.com/tools"
-        android:id="@+id/account_summary_row"
-        android:layout_width="match_parent"
+    <androidx.constraintlayout.widget.ConstraintLayout
+        android:id="@+id/account_name_layout"
+        android:layout_width="0dp"
         android:layout_height="wrap_content"
-        android:longClickable="true"
-        android:minHeight="@dimen/thumb_row_height"
+        app:layout_constraintBottom_toBottomOf="parent"
+        app:layout_constraintEnd_toStartOf="@+id/account_row_acc_amounts"
+        app:layout_constraintHorizontal_chainStyle="spread_inside"
+        app:layout_constraintHorizontal_weight="3"
+        app:layout_constraintStart_toStartOf="parent"
+        app:layout_constraintTop_toTopOf="parent"
         >
-        <androidx.constraintlayout.widget.ConstraintLayout
-            android:id="@+id/account_name_layout"
-            android:layout_width="0dp"
+        <TextView
+            android:id="@+id/account_row_acc_name"
+            style="@style/account_summary_account_name"
+            android:layout_width="wrap_content"
             android:layout_height="wrap_content"
-            app:layout_constraintBottom_toBottomOf="parent"
-            app:layout_constraintEnd_toStartOf="@+id/account_row_acc_amounts"
-            app:layout_constraintHorizontal_chainStyle="spread_inside"
-            app:layout_constraintHorizontal_weight="3"
-            app:layout_constraintStart_toStartOf="parent"
-            app:layout_constraintTop_toTopOf="parent"
-            >
-            <TextView
-                android:id="@+id/account_row_acc_name"
-                style="@style/account_summary_account_name"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:layout_marginStart="8dp"
-                android:gravity="center_vertical"
-                android:longClickable="true"
-                android:onClick="onAccountSummaryRowViewClicked"
-                android:paddingStart="8dp"
-                android:text="AccountNameALongOne"
-                android:textAppearance="@android:style/TextAppearance.Material.Medium"
+            android:layout_marginStart="8dp"
+            android:gravity="center_vertical"
+            android:longClickable="true"
+            android:onClick="onAccountSummaryRowViewClicked"
+            android:paddingStart="8dp"
+            android:text="AccountNameALongOne"
+            android:textAppearance="@android:style/TextAppearance.Material.Medium"
                 app:layout_constrainedWidth="true"
                 app:layout_constraintBottom_toBottomOf="parent"
                 app:layout_constraintEnd_toStartOf="@id/account_expander_container"
 
         </FrameLayout>
 
-    </androidx.constraintlayout.widget.ConstraintLayout>
-</FrameLayout>
+    </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file