From 956fd066f77a33ade38a249a06c2f94c0b9304c4 Mon Sep 17 00:00:00 2001 From: Andries Smit Date: Sun, 17 Apr 2022 19:48:41 +0200 Subject: [PATCH] chore: use layout start end instead left right --- app/src/main/res/layout/actions_fragment.xml | 64 +++++------ .../main/res/layout/activity_logsetting.xml | 4 +- .../res/layout/activity_profilehelper.xml | 8 +- .../main/res/layout/activity_setupwizard.xml | 4 +- .../layout/activity_smscommunicator_otp.xml | 4 +- app/src/main/res/layout/activity_stats.xml | 4 +- .../res/layout/careportal_stats_fragment.xml | 28 ++--- .../main/res/layout/dialog_calibration.xml | 4 +- app/src/main/res/layout/dialog_carbs.xml | 16 +-- app/src/main/res/layout/dialog_care.xml | 4 +- .../main/res/layout/dialog_extendedbolus.xml | 12 +- app/src/main/res/layout/dialog_fill.xml | 8 +- app/src/main/res/layout/dialog_insulin.xml | 4 +- app/src/main/res/layout/dialog_loop.xml | 80 +++++++------- .../main/res/layout/dialog_profileswitch.xml | 20 ++-- app/src/main/res/layout/dialog_tempbasal.xml | 4 +- app/src/main/res/layout/dialog_temptarget.xml | 20 ++-- app/src/main/res/layout/dialog_treatment.xml | 4 +- app/src/main/res/layout/dialog_wizard.xml | 12 +- app/src/main/res/layout/dialog_wizardinfo.xml | 4 +- app/src/main/res/layout/food_item.xml | 6 +- .../res/layout/import_summary_details.xml | 4 +- .../main/res/layout/import_summary_item.xml | 2 +- .../main/res/layout/localprofile_fragment.xml | 24 ++-- app/src/main/res/layout/loop_fragment.xml | 44 ++++---- .../main/res/layout/maintenance_fragment.xml | 28 ++--- .../main/res/layout/ns_client_fragment.xml | 32 +++--- .../main/res/layout/objectives_fragment.xml | 6 +- app/src/main/res/layout/objectives_item.xml | 4 +- .../main/res/layout/openapsama_fragment.xml | 56 +++++----- .../overview_editquickwizard_dialog.xml | 6 +- app/src/main/res/layout/overview_fragment.xml | 4 +- .../main/res/layout/timelistedit_element.xml | 8 +- .../layout/timelistedit_element_vertical.xml | 8 +- .../layout/treatments_bolus_carbs_item.xml | 8 +- .../res/layout/treatments_careportal_item.xml | 4 +- .../layout/treatments_extendedbolus_item.xml | 8 +- .../layout/treatments_profileswitch_item.xml | 8 +- .../res/layout/treatments_tempbasals_item.xml | 12 +- .../res/layout/treatments_temptarget_item.xml | 8 +- .../res/layout/treatments_user_entry_item.xml | 4 +- .../main/res/layout/virtualpump_fragment.xml | 60 +++++----- app/src/main/res/layout/wear_fragment.xml | 8 +- .../res/layout/automation_action_item.xml | 4 +- .../res/layout/automation_dialog_action.xml | 4 +- .../automation_dialog_choose_action.xml | 4 +- .../automation_dialog_choose_operation.xml | 4 +- .../automation_dialog_choose_trigger.xml | 4 +- .../layout/automation_dialog_edit_trigger.xml | 4 +- .../res/layout/automation_dialog_event.xml | 4 +- .../main/res/layout/combopump_fragment.xml | 104 +++++++++--------- .../main/res/layout/activity_tdd_stats.xml | 4 +- core/src/main/res/layout/datetime.xml | 4 +- .../main/res/layout/dialog_bolusprogress.xml | 12 +- core/src/main/res/layout/dialog_error.xml | 20 ++-- .../main/res/layout/dialog_profileviewer.xml | 28 ++--- core/src/main/res/layout/toast.xml | 6 +- core/src/main/res/values-night/styles.xml | 4 +- core/src/main/res/values/styles.xml | 4 +- dana/src/main/res/layout/danar_fragment.xml | 74 ++++++------- .../res/layout/danar_history_activity.xml | 4 +- .../main/res/layout/danar_history_item.xml | 22 ++-- .../layout/danar_user_options_activity.xml | 52 ++++----- .../res/layout/danars_blescanner_activity.xml | 4 +- .../res/layout/danars_blescanner_item.xml | 4 +- .../res/layout/danars_enter_pin_activity.xml | 4 +- .../layout/danars_pairing_progress_dialog.xml | 8 +- .../layout/diaconn_g8_blescanner_activity.xml | 4 +- .../res/layout/diaconn_g8_blescanner_item.xml | 4 +- .../main/res/layout/diaconn_g8_fragment.xml | 70 ++++++------ .../layout/diaconn_g8_history_activity.xml | 4 +- .../res/layout/diaconn_g8_history_item.xml | 18 +-- .../diaconn_g8_user_options_activity.xml | 20 ++-- .../res/layout/activity_insight_alert.xml | 4 +- .../src/main/res/layout/bluetooth_device.xml | 2 +- .../res/layout/local_insight_status_item.xml | 4 +- .../main/res/layout/medtronic_fragment.xml | 60 +++++----- .../res/layout/medtronic_history_activity.xml | 8 +- .../res/layout/medtronic_history_item.xml | 2 +- .../omnipod_common_overview_pod_info.xml | 36 +++--- .../main/res/layout/omnipod_dash_overview.xml | 4 +- ...omnipod_dash_overview_bluetooth_status.xml | 4 +- .../layout/omnipod_dash_pod_management.xml | 4 +- .../main/res/layout/omnipod_eros_overview.xml | 4 +- ...mnipod_eros_overview_riley_link_status.xml | 4 +- .../layout/omnipod_eros_pod_management.xml | 12 +- .../layout/rileylink_status_device_item.xml | 2 +- .../res/layout/rileylink_status_general.xml | 56 +++++----- .../layout/rileylink_status_history_item.xml | 2 +- .../res/layout/rect_activity_bigchart.xml | 6 +- .../layout/rect_activity_bigchart_small.xml | 6 +- .../res/layout/rect_activity_digitalstyle.xml | 12 +- .../main/res/layout/rect_activity_home.xml | 8 +- .../main/res/layout/rect_activity_home_2.xml | 4 +- .../res/layout/rect_activity_home_large.xml | 6 +- .../main/res/layout/rect_activity_nochart.xml | 6 +- .../layout/rect_activity_nochart_small.xml | 6 +- wear/src/main/res/layout/rect_cockpit.xml | 2 +- .../res/layout/round_activity_bigchart.xml | 6 +- .../layout/round_activity_bigchart_small.xml | 6 +- .../layout/round_activity_digitalstyle.xml | 12 +- .../main/res/layout/round_activity_home.xml | 8 +- .../main/res/layout/round_activity_home_2.xml | 4 +- .../res/layout/round_activity_home_large.xml | 6 +- .../res/layout/round_activity_nochart.xml | 6 +- .../layout/round_activity_nochart_small.xml | 6 +- wear/src/main/res/layout/round_cockpit.xml | 2 +- 107 files changed, 743 insertions(+), 743 deletions(-) diff --git a/app/src/main/res/layout/actions_fragment.xml b/app/src/main/res/layout/actions_fragment.xml index e41f84726b..e5b4cc4c5a 100644 --- a/app/src/main/res/layout/actions_fragment.xml +++ b/app/src/main/res/layout/actions_fragment.xml @@ -47,8 +47,8 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:drawableTop="@drawable/ic_actions_profileswitch" - android:paddingLeft="0dp" - android:paddingRight="0dp" + android:paddingStart="0dp" + android:paddingEnd="0dp" android:text="@string/careportal_profileswitch" android:textSize="11sp" app:layout_column="0" @@ -62,8 +62,8 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:drawableTop="@drawable/ic_temptarget_high" - android:paddingLeft="0dp" - android:paddingRight="0dp" + android:paddingStart="0dp" + android:paddingEnd="0dp" android:text="@string/careportal_temporarytarget" android:textSize="11sp" app:layout_column="1" @@ -77,8 +77,8 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:drawableTop="@drawable/ic_actions_starttempbasal" - android:paddingLeft="0dp" - android:paddingRight="0dp" + android:paddingStart="0dp" + android:paddingEnd="0dp" android:text="@string/overview_tempbasal_button" android:textSize="11sp" app:layout_column="0" @@ -92,8 +92,8 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:drawableTop="@drawable/ic_cancelbasal" - android:paddingLeft="0dp" - android:paddingRight="0dp" + android:paddingStart="0dp" + android:paddingEnd="0dp" android:text="@string/canceltemp" android:textSize="11sp" android:visibility="gone" @@ -108,8 +108,8 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:drawableTop="@drawable/ic_actions_startextbolus" - android:paddingLeft="0dp" - android:paddingRight="0dp" + android:paddingStart="0dp" + android:paddingEnd="0dp" android:text="@string/overview_extendedbolus_button" android:textSize="11sp" app:layout_column="1" @@ -123,8 +123,8 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:drawableTop="@drawable/ic_actions_cancelextbolus" - android:paddingLeft="0dp" - android:paddingRight="0dp" + android:paddingStart="0dp" + android:paddingEnd="0dp" android:text="@string/overview_extendedbolus_cancel_button" android:textSize="11sp" android:visibility="gone" @@ -194,8 +194,8 @@ android:layout_width="0dp" android:layout_height="fill_parent" android:drawableTop="@drawable/ic_cp_bgcheck" - android:paddingLeft="0dp" - android:paddingRight="0dp" + android:paddingStart="0dp" + android:paddingEnd="0dp" android:text="@string/careportal_bgcheck" android:textSize="11sp" app:layout_column="0" @@ -209,8 +209,8 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:drawableTop="@drawable/ic_cp_pump_canula" - android:paddingLeft="0dp" - android:paddingRight="0dp" + android:paddingStart="0dp" + android:paddingEnd="0dp" android:text="@string/primefill" android:textSize="11sp" app:layout_column="1" @@ -224,8 +224,8 @@ android:layout_width="0dp" android:layout_height="fill_parent" android:drawableTop="@drawable/ic_cp_cgm_insert" - android:paddingLeft="0dp" - android:paddingRight="0dp" + android:paddingStart="0dp" + android:paddingEnd="0dp" android:text="@string/careportal_cgmsensorinsert" android:textSize="11sp" app:layout_column="0" @@ -239,8 +239,8 @@ android:layout_width="0dp" android:layout_height="fill_parent" android:drawableTop="@drawable/ic_cp_pump_battery" - android:paddingLeft="0dp" - android:paddingRight="0dp" + android:paddingStart="0dp" + android:paddingEnd="0dp" android:text="@string/careportal_pumpbatterychange" android:textSize="11sp" app:layout_column="1" @@ -254,8 +254,8 @@ android:layout_width="0dp" android:layout_height="fill_parent" android:drawableTop="@drawable/ic_cp_note" - android:paddingLeft="0dp" - android:paddingRight="0dp" + android:paddingStart="0dp" + android:paddingEnd="0dp" android:text="@string/careportal_note" android:textSize="11sp" app:layout_column="0" @@ -269,8 +269,8 @@ android:layout_width="0dp" android:layout_height="fill_parent" android:drawableTop="@drawable/ic_cp_exercise" - android:paddingLeft="0dp" - android:paddingRight="0dp" + android:paddingStart="0dp" + android:paddingEnd="0dp" android:text="@string/careportal_exercise" android:textSize="11sp" app:layout_column="1" @@ -284,8 +284,8 @@ android:layout_width="0dp" android:layout_height="fill_parent" android:drawableTop="@drawable/ic_cp_announcement" - android:paddingLeft="0dp" - android:paddingRight="0dp" + android:paddingStart="0dp" + android:paddingEnd="0dp" android:text="@string/careportal_announcement" android:textSize="11sp" app:layout_column="0" @@ -299,8 +299,8 @@ android:layout_width="0dp" android:layout_height="fill_parent" android:drawableTop="@drawable/ic_cp_question" - android:paddingLeft="0dp" - android:paddingRight="0dp" + android:paddingStart="0dp" + android:paddingEnd="0dp" android:text="@string/careportal_question" android:textSize="11sp" app:layout_column="1" @@ -347,8 +347,8 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:drawableTop="@drawable/ic_pump_history" - android:paddingLeft="0dp" - android:paddingRight="0dp" + android:paddingStart="0dp" + android:paddingEnd="0dp" android:text="@string/nav_historybrowser" android:textSize="11sp" app:layout_column="0" @@ -362,8 +362,8 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:drawableTop="@drawable/ic_cp_stats" - android:paddingLeft="0dp" - android:paddingRight="0dp" + android:paddingStart="0dp" + android:paddingEnd="0dp" android:text="@string/tdd" android:textSize="11sp" app:layout_column="1" diff --git a/app/src/main/res/layout/activity_logsetting.xml b/app/src/main/res/layout/activity_logsetting.xml index cb1573ecf8..4236005fd8 100644 --- a/app/src/main/res/layout/activity_logsetting.xml +++ b/app/src/main/res/layout/activity_logsetting.xml @@ -31,8 +31,8 @@ android:layout_height="wrap_content" android:layout_centerInParent="true" android:layout_gravity="center" - android:layout_marginLeft="10dp" - android:layout_marginRight="10dp" + android:layout_marginStart="10dp" + android:layout_marginEnd="10dp" android:text="@string/nav_logsettings" android:textAlignment="center" android:textAppearance="?android:attr/textAppearanceLarge" /> diff --git a/app/src/main/res/layout/activity_profilehelper.xml b/app/src/main/res/layout/activity_profilehelper.xml index 73353f3d1c..615958b310 100644 --- a/app/src/main/res/layout/activity_profilehelper.xml +++ b/app/src/main/res/layout/activity_profilehelper.xml @@ -25,8 +25,8 @@ android:layout_height="30dp" android:layout_weight="1" android:gravity="center" - android:paddingLeft="5dp" - android:paddingRight="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:text="1" tools:ignore="HardcodedText" /> @@ -36,8 +36,8 @@ android:layout_height="30dp" android:layout_weight="1" android:gravity="center" - android:paddingLeft="5dp" - android:paddingRight="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" android:text="2" tools:ignore="HardcodedText" /> diff --git a/app/src/main/res/layout/activity_setupwizard.xml b/app/src/main/res/layout/activity_setupwizard.xml index c84e5f652d..24403b64a3 100644 --- a/app/src/main/res/layout/activity_setupwizard.xml +++ b/app/src/main/res/layout/activity_setupwizard.xml @@ -64,8 +64,8 @@ android:layout_gravity="bottom|center_horizontal" android:background="@color/black_alpha_40" android:orientation="horizontal" - android:paddingLeft="16dp" - android:paddingRight="16dp"> + android:paddingStart="16dp" + android:paddingEnd="16dp">