]> git.ktnx.net Git - mobile-ledger-staging.git/commitdiff
profile details: add switch for showing comments by default
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 13 May 2020 19:13:04 +0000 (22:13 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 14 May 2020 17:39:53 +0000 (17:39 +0000)
app/src/main/res/layout/profile_detail.xml

index b70d55f05b188d1dc283218ab2f4a03c5b1a16d9..cf23f9f3b1f6cfede9befd0bdf55c42243c4a27a 100644 (file)
                 android:text="@string/currency_input_by_default"
                 android:textAppearance="?android:textAppearanceListItem" />
 
-        <LinearLayout
-            android:id="@+id/future_dates_layout"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:layout_marginBottom="16dp"
-            android:orientation="vertical">
+            <Switch
+                android:id="@+id/profile_show_comments"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:layout_marginBottom="16dp"
+                android:text="@string/show_comment_input_by_default"
+                android:textAppearance="?android:textAppearanceListItem" />
+
+            <LinearLayout
+                android:id="@+id/future_dates_layout"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:layout_marginBottom="16dp"
+                android:orientation="vertical">
 
                 <TextView
                     android:id="@+id/future_dates_title"