From b89c20ff40ba1704a14613eaa338cec1855a316d Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Wed, 20 Mar 2019 15:52:14 -0700 Subject: [PATCH] Switch to 'start' and 'end' instead of 'left' and 'right'. We can do this now that our minSdk is 19. --- res/layout/attachment_type_selector.xml | 8 ++-- res/layout/audio_view.xml | 2 +- res/layout/backup_enable_dialog.xml | 25 +++++------- res/layout/blocked_contact_list_item.xml | 12 +++--- res/layout/blocked_contacts_fragment.xml | 4 +- res/layout/camera_controls_landscape.xml | 3 +- res/layout/camera_controls_portrait.xml | 2 - res/layout/captcha_activity.xml | 4 -- res/layout/change_passphrase_activity.xml | 8 ++-- res/layout/color_fragment.xml | 8 ++-- res/layout/contact_filter_toolbar.xml | 4 +- res/layout/contact_selection_list_divider.xml | 1 - .../contact_selection_list_fragment.xml | 4 +- res/layout/contact_selection_list_item.xml | 5 --- res/layout/conversation_activity.xml | 2 +- ...sation_activity_attachment_editor_stub.xml | 4 +- res/layout/conversation_fragment.xml | 5 +-- res/layout/conversation_input_panel.xml | 28 +++++-------- res/layout/conversation_item_footer.xml | 7 +--- res/layout/conversation_item_header.xml | 4 +- res/layout/conversation_item_last_seen.xml | 4 +- res/layout/conversation_item_received.xml | 37 +++++++---------- res/layout/conversation_item_sent.xml | 25 +++++------- res/layout/conversation_item_thumbnail.xml | 4 +- res/layout/conversation_item_update.xml | 5 +-- res/layout/conversation_list_activity.xml | 9 +---- res/layout/conversation_list_fragment.xml | 4 +- res/layout/conversation_list_item_view.xml | 34 ++++------------ res/layout/conversation_search_nav.xml | 3 -- res/layout/conversation_title_view.xml | 7 ---- res/layout/conversation_typing_view.xml | 5 +-- res/layout/country_code_text.xml | 4 +- res/layout/country_list_item.xml | 4 +- res/layout/country_selection_fragment.xml | 2 +- .../custom_default_preference_dialog.xml | 18 ++++----- res/layout/database_migration_activity.xml | 14 +++---- res/layout/database_upgrade_activity.xml | 4 +- res/layout/delivery_status_view.xml | 8 ++-- res/layout/device_add_fragment.xml | 4 +- res/layout/device_link_fragment.xml | 6 +-- res/layout/device_list_fragment.xml | 8 ++-- res/layout/device_list_item_view.xml | 4 +- res/layout/document_view.xml | 2 - res/layout/emoji_display_item.xml | 8 ++-- res/layout/emoji_drawer.xml | 4 +- res/layout/experience_upgrade_activity.xml | 2 +- ...erience_upgrade_link_previews_fragment.xml | 16 ++------ ...experience_upgrade_preference_fragment.xml | 8 ++-- ...nce_upgrade_typing_indicators_fragment.xml | 12 +++--- res/layout/fragment_submit_log.xml | 5 +-- res/layout/giphy_activity_toolbar.xml | 5 +-- res/layout/group_create_activity.xml | 16 ++++---- res/layout/invite_activity.xml | 7 +--- res/layout/item_editable_contact.xml | 1 - res/layout/item_log_preview.xml | 4 +- res/layout/key_caching_notification.xml | 6 +-- res/layout/labeled_edit_text.xml | 5 +-- res/layout/labeled_edit_text_default.xml | 4 +- res/layout/led_color_preference_widget.xml | 2 +- res/layout/link_preview.xml | 5 --- res/layout/load_more_header.xml | 1 - res/layout/longmessage_bubble_received.xml | 8 ++-- res/layout/longmessage_bubble_sent.xml | 8 ++-- res/layout/media_preview_activity.xml | 8 ++-- res/layout/media_view_remove_button.xml | 2 +- res/layout/mediapicker_folder_fragment.xml | 2 +- res/layout/mediapicker_folder_item.xml | 4 +- res/layout/mediapicker_item_fragment.xml | 2 +- res/layout/mediapicker_media_item.xml | 4 +- res/layout/mediarail_media_item.xml | 5 +-- res/layout/mediasend_activity.xml | 12 +++--- res/layout/mediasend_fragment.xml | 27 ++++++------- res/layout/message_details_header.xml | 27 ++++++------- res/layout/message_recipient_list_item.xml | 15 ++++--- res/layout/permissions_rationale_dialog.xml | 4 +- res/layout/phone_text.xml | 4 +- res/layout/profile_create_activity.xml | 13 ------ res/layout/profile_group_share_view.xml | 1 - res/layout/profile_name_text.xml | 4 +- res/layout/profile_preference_view.xml | 1 - res/layout/prompt_apn_activity.xml | 6 +-- res/layout/prompt_passphrase_activity.xml | 26 ++++++------ res/layout/push_recipients_panel.xml | 12 +++--- res/layout/quick_camera_controls.xml | 4 +- res/layout/quick_camera_controls_land.xml | 6 +-- res/layout/quote_view.xml | 9 +---- res/layout/recent_photo_view_item.xml | 1 - res/layout/recipient_filter_item.xml | 2 +- res/layout/recipient_preference_activity.xml | 4 +- .../recipient_preference_contact_widget.xml | 1 - .../recipient_preference_photo_rail.xml | 1 - .../recipient_preference_photo_rail_item.xml | 2 +- res/layout/registration_activity.xml | 40 +++++++++---------- res/layout/registration_lock_dialog_view.xml | 4 +- .../registration_lock_reminder_view.xml | 8 ++-- res/layout/registration_welcome_activity.xml | 4 -- res/layout/scribble_hud.xml | 24 ++++------- res/layout/selected_recipient_list_item.xml | 6 +-- res/layout/share_activity.xml | 3 -- res/layout/shared_contact_view.xml | 11 +++-- res/layout/thumbnail_view.xml | 1 - res/layout/transport_selection_list_item.xml | 6 +-- .../unidentified_delivery_learn_more.xml | 1 - res/layout/unknown_sender_view.xml | 13 +++--- res/layout/unverified_banner_view.xml | 3 +- res/layout/verification_code_view.xml | 12 +++--- res/layout/verify_display_fragment.xml | 22 +++++----- res/layout/webrtc_call_controls.xml | 8 ++-- res/layout/webrtc_call_screen.xml | 22 +++++----- 109 files changed, 357 insertions(+), 522 deletions(-) diff --git a/res/layout/attachment_type_selector.xml b/res/layout/attachment_type_selector.xml index 8d84bf3680..7f96eaae2c 100644 --- a/res/layout/attachment_type_selector.xml +++ b/res/layout/attachment_type_selector.xml @@ -24,8 +24,8 @@ @@ -127,8 +127,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="16dp" - android:layout_marginLeft="16dp" - android:layout_marginRight="16dp" + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp" android:layout_marginBottom="16dp" android:weightSum="4"> diff --git a/res/layout/audio_view.xml b/res/layout/audio_view.xml index 088f420f41..79dfe4c884 100644 --- a/res/layout/audio_view.xml +++ b/res/layout/audio_view.xml @@ -78,7 +78,7 @@ + android:paddingStart="23dp" + android:paddingEnd="23dp"> + tools:text="56944" /> + tools:text="42738" /> @@ -58,18 +56,16 @@ + tools:text="24922" /> + tools:text="58594" /> @@ -82,7 +78,6 @@ + android:paddingEnd="25dip"> @@ -21,12 +21,12 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_alignParentTop="true" - android:layout_marginLeft="14dip" + android:layout_marginStart="14dip" android:checkMark="?android:attr/listChoiceIndicatorMultiple" android:singleLine="true" android:ellipsize="marquee" - android:layout_toRightOf="@id/contact_photo_image" - android:gravity="center_vertical|left" + android:layout_toEndOf="@id/contact_photo_image" + android:gravity="center_vertical|start" android:textAppearance="?android:attr/textAppearanceMedium" /> diff --git a/res/layout/blocked_contacts_fragment.xml b/res/layout/blocked_contacts_fragment.xml index 71859fcc46..49ccc82aa6 100644 --- a/res/layout/blocked_contacts_fragment.xml +++ b/res/layout/blocked_contacts_fragment.xml @@ -3,8 +3,8 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" - android:paddingLeft="16dip" - android:paddingRight="16dip"> + android:paddingStart="16dip" + android:paddingEnd="16dip"> + android:layout_gravity="end">