From e6d549b4f343174ed44ee7f9de603bbe2d5d1f3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20L=C3=A4nge?= Date: Mon, 9 Dec 2024 15:35:09 +0100 Subject: [PATCH] Replace `android:tint` with `app:tint` --- .../layouts/camera/layout/camera_preview.xml | 88 ++-- .../layout/delete_lists_activity.xml | 46 +- .../layout/delete_products_activity.xml | 46 +- .../res/layouts/main/layout/app_bar_main.xml | 110 ++--- .../products/layout/product_dialog.xml | 358 +++++++------- .../products/layout/product_list_item.xml | 204 ++++---- .../layout/product_list_item_left_hand.xml | 204 ++++---- .../products/layout/products_activity.xml | 185 ++++---- .../layout/shopping_list_dialog.xml | 349 +++++++------- .../layout/shopping_list_item.xml | 195 ++++---- .../layout/shopping_list_item_left_hand.xml | 192 ++++---- .../tutorials/layout/products_tutorial.xml | 375 ++++++++------- .../layout/shopping_list_tutorial.xml | 437 ++++++++++-------- 13 files changed, 1449 insertions(+), 1340 deletions(-) diff --git a/app/src/main/res/layouts/camera/layout/camera_preview.xml b/app/src/main/res/layouts/camera/layout/camera_preview.xml index af8e9902..cf084ccc 100644 --- a/app/src/main/res/layouts/camera/layout/camera_preview.xml +++ b/app/src/main/res/layouts/camera/layout/camera_preview.xml @@ -1,53 +1,57 @@ - + - + android:id="@+id/camera_preview" + android:layout_width="match_parent" + android:layout_height="match_parent"> + android:id="@+id/button_capture" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentEnd="true" + android:layout_alignParentBottom="true" + + android:layout_gravity="right|bottom" + android:layout_margin="@dimen/fab_margin" + android:layout_marginLeft="@dimen/fab_margin" + android:src="@drawable/ic_camera_alt_white_48sp" + app:layout_anchorGravity="bottom|right|end" + app:tint="@color/white" /> + android:id="@+id/button_flash" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:layout_alignParentEnd="true" + + android:layout_gravity="right|top" + android:layout_margin="@dimen/fab_margin" + android:layout_marginLeft="@dimen/fab_margin" + android:src="@drawable/ic_flash_auto_white_48sp" + app:tint="@color/white" + app:layout_anchorGravity="bottom|right|end" /> + android:id="@+id/button_retake" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentStart="true" + android:layout_alignParentBottom="true" + android:layout_gravity="left|bottom" + + android:layout_margin="@dimen/fab_margin" + android:layout_marginLeft="@dimen/fab_margin" + android:src="@drawable/ic_undo_white_48sp" + android:visibility="gone" + app:layout_anchorGravity="bottom|right|end" + app:tint="@color/white" /> \ No newline at end of file diff --git a/app/src/main/res/layouts/deletelists/layout/delete_lists_activity.xml b/app/src/main/res/layouts/deletelists/layout/delete_lists_activity.xml index 206dd45a..69cc6b1c 100644 --- a/app/src/main/res/layouts/deletelists/layout/delete_lists_activity.xml +++ b/app/src/main/res/layouts/deletelists/layout/delete_lists_activity.xml @@ -1,33 +1,31 @@ - + - + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:theme="@style/AppTheme.AppBarOverlay"> + android:id="@+id/recyclerView" + android:layout_width="match_parent" + android:layout_height="match_parent" + app:layout_behavior="@string/appbar_scrolling_view_behavior" /> + android:id="@+id/fab_delete_lists" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="bottom|end" + android:layout_margin="@dimen/fab_margin" + android:src="@drawable/ic_delete_white_24sp" + app:layout_anchor="@id/recyclerView" + app:layout_anchorGravity="bottom|right|end" + app:layout_behavior=".ui.fab.ScrollAwareFabBehaviorForDeleteActivities" + app:tint="@color/white" /> diff --git a/app/src/main/res/layouts/deleteproducts/layout/delete_products_activity.xml b/app/src/main/res/layouts/deleteproducts/layout/delete_products_activity.xml index 6c4ac414..e04cd3dd 100644 --- a/app/src/main/res/layouts/deleteproducts/layout/delete_products_activity.xml +++ b/app/src/main/res/layouts/deleteproducts/layout/delete_products_activity.xml @@ -1,33 +1,31 @@ - + - + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:theme="@style/AppTheme.AppBarOverlay"> + android:id="@+id/recyclerView" + android:layout_width="match_parent" + android:layout_height="match_parent" + app:layout_behavior="@string/appbar_scrolling_view_behavior" /> + android:id="@+id/fab_delete_products" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="bottom|end" + android:layout_margin="@dimen/fab_margin" + android:src="@drawable/ic_delete_white_24sp" + app:layout_anchor="@id/recyclerView" + app:layout_anchorGravity="bottom|right|end" + app:layout_behavior=".ui.fab.ScrollAwareFabBehaviorForDeleteActivities" + app:tint="@color/white" /> diff --git a/app/src/main/res/layouts/main/layout/app_bar_main.xml b/app/src/main/res/layouts/main/layout/app_bar_main.xml index 0fc170cb..1ed61a70 100644 --- a/app/src/main/res/layouts/main/layout/app_bar_main.xml +++ b/app/src/main/res/layouts/main/layout/app_bar_main.xml @@ -1,76 +1,76 @@ - + - + + android:id="@+id/recyclerView" + android:layout_width="match_parent" + android:layout_height="match_parent" + app:layout_behavior="@string/appbar_scrolling_view_behavior" /> + android:id="@+id/fab_new_list" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="bottom|end" + android:layout_margin="@dimen/fab_margin" + android:src="@android:drawable/ic_input_add" + android:tint="@color/white" + app:layout_anchor="@id/recyclerView" + app:layout_anchorGravity="bottom|right|end" /> + android:id="@+id/insert_alert" + android:layout_width="wrap_content" + android:layout_height="50sp" + android:layout_margin="@dimen/fab_margin" + android:gravity="center_vertical" + android:orientation="horizontal" + android:paddingRight="70sp" + android:visibility="gone" + app:layout_anchor="@id/fab_new_list" + app:layout_anchorGravity="bottom|left"> + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:text="@string/alert_message_list" + android:textColor="@color/colorPrimaryDark" + android:textStyle="bold|italic" /> + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/ic_keyboard_arrow_right_black_24sp" + app:tint="@color/colorPrimary" /> + android:id="@+id/no_lists_layout" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center" + android:orientation="vertical" + android:visibility="gone"> + + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:src="@drawable/icon_splash" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:text="@string/lists_empty" + android:textAlignment="center" /> diff --git a/app/src/main/res/layouts/products/layout/product_dialog.xml b/app/src/main/res/layouts/products/layout/product_dialog.xml index 0592f516..7993abcd 100644 --- a/app/src/main/res/layouts/products/layout/product_dialog.xml +++ b/app/src/main/res/layouts/products/layout/product_dialog.xml @@ -1,248 +1,256 @@ + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + android:id="@+id/dialog_title" + android:layout_width="match_parent" + android:layout_height="@dimen/dialog_title_height" + android:background="@color/colorPrimaryDark" + android:gravity="center" + android:text="@string/product_dialog_title" + android:textColor="@color/white" + android:textStyle="bold" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:fadeScrollbars="false"> + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + + android:layout_toStartOf="@+id/product_checkbox" + app:counterEnabled="true" + app:counterMaxLength="40" + app:errorEnabled="true" + app:errorTextAppearance="@style/error_appearance"> - - + android:id="@+id/product_name" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:hint="@string/product_name" + android:imeOptions="actionNext" + android:inputType="text|textCapSentences" + android:maxLength="40" + android:selectAllOnFocus="true"> + android:id="@+id/product_checkbox" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentEnd="true" + android:layout_centerVertical="true" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:paddingLeft="@dimen/dialog_padding_horizontal" + android:paddingRight="@dimen/dialog_padding_horizontal" + android:weightSum="1"> + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0.3" + android:gravity="center_vertical" + android:orientation="horizontal"> +