]> git.ktnx.net Git - mobile-ledger-staging.git/blobdiff - app/src/main/res/layout/profile_detail.xml
100% themed colours
[mobile-ledger-staging.git] / app / src / main / res / layout / profile_detail.xml
index b70d55f05b188d1dc283218ab2f4a03c5b1a16d9..3c192f6d74dd10bc2f587a59049112983c91f050 100644 (file)
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:layout_marginBottom="@dimen/activity_vertical_margin"
-                android:background="@color/error_background"
+                android:background="?colorError"
                 android:padding="@dimen/activity_vertical_margin"
                 android:visibility="gone">
 
                 <TextView
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
+                    android:textColor="?colorOnError"
                     android:text="@string/insecure_scheme_with_auth" />
             </LinearLayout>
 
                 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"
                 android:layout_weight="1"
                 android:background="?colorPrimary"
                 android:contentDescription="@string/btn_color_picker_button"
-                android:src="@drawable/ic_palette_black_24dp"
-                android:tint="?drawer_background" />
+                app:srcCompat="@drawable/ic_palette_black_24dp"
+                android:tint="?android:attr/colorBackground" />
 
         </LinearLayout>