]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/layout/profile_detail.xml
profile-level setting for showing commodify in new transaction screen by default
[mobile-ledger.git] / app / src / main / res / layout / profile_detail.xml
index d095f094ae91876be8fc324b918f55827ac6e4e7..fd39b41d3e4b2d81895a2303e3238e89faf8cfbc 100644 (file)
 
         </LinearLayout>
 
+        <LinearLayout
+            android:id="@+id/api_version_layout"
+            android:orientation="vertical"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginBottom="16dp">
+
+            <TextView
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:text="@string/profile_api_version_title"
+                android:textAppearance="?android:textAppearanceListItem" />
+
+            <TextView
+                android:id="@+id/api_version_text"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:textAppearance="?android:textAppearanceListItemSecondary"
+                android:textColor="?attr/textColor" />
+        </LinearLayout>
+
         <Switch
             android:id="@+id/profile_permit_posting"
             android:layout_width="match_parent"
             android:text="@string/posting_permitted"
             android:textAppearance="?android:textAppearanceListItem" />
 
+        <Switch
+            android:id="@+id/profile_show_commodity"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginBottom="16dp"
+            android:text="@string/currency_input_by_default"
+            android:textAppearance="?android:textAppearanceListItem"/>
+
         <LinearLayout
             android:id="@+id/future_dates_layout"
             android:layout_width="match_parent"