From ef9c57f07477cf2902ffa51d4670f3c6964eb356 Mon Sep 17 00:00:00 2001 From: Javi Rueda Date: Mon, 7 Sep 2020 15:10:55 +0200 Subject: [PATCH 1/2] Use Start/End instead of Left/Right to support RTL --- .../browser/adapter/ClaimListAdapter.java | 2 +- .../browser/adapter/CommentListAdapter.java | 4 +- .../main/res/layout/activity_first_run.xml | 2 +- .../main/res/layout/activity_verification.xml | 2 +- app/src/main/res/layout/app_bar_main.xml | 32 ++++----- .../main/res/layout/card_invites_by_email.xml | 4 +- .../main/res/layout/card_invites_by_link.xml | 10 +-- .../main/res/layout/card_invites_history.xml | 2 +- .../main/res/layout/card_reward_driver.xml | 2 +- .../main/res/layout/card_wallet_balance.xml | 30 ++++----- .../layout/card_wallet_receive_credits.xml | 8 +-- .../card_wallet_recent_transactions.xml | 6 +- .../res/layout/card_wallet_send_credits.xml | 10 +-- app/src/main/res/layout/card_wallet_sync.xml | 14 ++-- .../res/layout/container_comment_form.xml | 12 ++-- .../layout/container_inline_channel_form.xml | 10 +-- app/src/main/res/layout/content_main.xml | 10 +-- .../main/res/layout/dialog_content_from.xml | 18 ++--- .../main/res/layout/dialog_content_scope.xml | 16 ++--- .../main/res/layout/dialog_content_sort.xml | 20 +++--- .../main/res/layout/dialog_create_support.xml | 12 ++-- .../main/res/layout/dialog_customize_tags.xml | 36 +++++----- app/src/main/res/layout/dialog_discover.xml | 6 +- .../main/res/layout/dialog_repost_claim.xml | 12 ++-- .../res/layout/exo_playback_control_view.xml | 18 ++--- .../res/layout/floating_wallet_balance.xml | 18 ++--- .../main/res/layout/fragment_all_content.xml | 30 ++++----- app/src/main/res/layout/fragment_channel.xml | 28 ++++---- .../res/layout/fragment_channel_comments.xml | 16 ++--- .../res/layout/fragment_channel_content.xml | 12 ++-- .../main/res/layout/fragment_channel_form.xml | 28 ++++---- .../res/layout/fragment_channel_manager.xml | 8 +-- .../main/res/layout/fragment_file_view.xml | 66 +++++++++---------- .../main/res/layout/fragment_following.xml | 28 ++++---- app/src/main/res/layout/fragment_invites.xml | 2 +- app/src/main/res/layout/fragment_library.xml | 36 +++++----- app/src/main/res/layout/fragment_publish.xml | 4 +- .../main/res/layout/fragment_publish_form.xml | 40 +++++------ .../main/res/layout/fragment_publishes.xml | 8 +-- app/src/main/res/layout/fragment_rewards.xml | 12 ++-- app/src/main/res/layout/fragment_search.xml | 2 +- .../layout/fragment_transaction_history.xml | 4 +- .../layout/fragment_verification_phone.xml | 4 +- .../layout/fragment_verification_wallet.xml | 2 +- app/src/main/res/layout/fragment_wallet.xml | 2 +- app/src/main/res/layout/list_item_channel.xml | 20 +++--- .../res/layout/list_item_channel_filter.xml | 2 +- app/src/main/res/layout/list_item_comment.xml | 8 +-- .../res/layout/list_item_editors_choice.xml | 10 +-- .../list_item_featured_search_result.xml | 24 +++---- app/src/main/res/layout/list_item_gallery.xml | 4 +- .../res/layout/list_item_nav_menu_group.xml | 4 +- .../res/layout/list_item_nav_menu_item.xml | 6 +- .../res/layout/list_item_notification.xml | 6 +- app/src/main/res/layout/list_item_stream.xml | 26 ++++---- .../layout/list_item_suggested_channel.xml | 8 +-- app/src/main/res/layout/list_item_tag.xml | 10 +-- .../res/layout/list_item_url_suggestion.xml | 6 +- app/src/main/res/layout/popup_webview.xml | 2 +- 59 files changed, 392 insertions(+), 392 deletions(-) diff --git a/app/src/main/java/io/lbry/browser/adapter/ClaimListAdapter.java b/app/src/main/java/io/lbry/browser/adapter/ClaimListAdapter.java index c36cbf3c..93b7958d 100644 --- a/app/src/main/java/io/lbry/browser/adapter/ClaimListAdapter.java +++ b/app/src/main/java/io/lbry/browser/adapter/ClaimListAdapter.java @@ -323,7 +323,7 @@ public class ClaimListAdapter extends RecyclerView.Adapter diff --git a/app/src/main/res/layout/card_invites_by_link.xml b/app/src/main/res/layout/card_invites_by_link.xml index 82853634..f92c2889 100644 --- a/app/src/main/res/layout/card_invites_by_link.xml +++ b/app/src/main/res/layout/card_invites_by_link.xml @@ -24,7 +24,7 @@ android:id="@+id/invites_loading_channels_progress" android:layout_width="20dp" android:layout_height="20dp" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:visibility="gone" /> @@ -57,8 +57,8 @@ android:layout_toLeftOf="@id/invites_copy_invite_link" android:paddingTop="8dp" android:paddingBottom="8dp" - android:paddingLeft="12dp" - android:paddingRight="12dp"> + android:paddingStart="12dp" + android:paddingEnd="12dp"> + android:layout_alignParentEnd="true" /> diff --git a/app/src/main/res/layout/card_reward_driver.xml b/app/src/main/res/layout/card_reward_driver.xml index 93fb83b3..a6183a68 100644 --- a/app/src/main/res/layout/card_reward_driver.xml +++ b/app/src/main/res/layout/card_reward_driver.xml @@ -27,7 +27,7 @@ android:layout_centerVertical="true" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginLeft="8dp" + android:layout_marginStart="8dp" android:layout_toRightOf="@id/reward_driver_icon" android:fontFamily="@font/inter" android:lineSpacingMultiplier="1.2" diff --git a/app/src/main/res/layout/card_wallet_balance.xml b/app/src/main/res/layout/card_wallet_balance.xml index 550f8849..3325968c 100644 --- a/app/src/main/res/layout/card_wallet_balance.xml +++ b/app/src/main/res/layout/card_wallet_balance.xml @@ -51,7 +51,7 @@ + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp"> @@ -232,7 +232,7 @@ android:textColor="@color/lbryGreen" /> + android:layout_alignParentEnd="true" /> + android:layout_marginStart="2dp" /> + android:layout_marginStart="8dp"> + android:layout_marginEnd="40dp"> + android:layout_marginStart="16dp"> diff --git a/app/src/main/res/layout/container_inline_channel_form.xml b/app/src/main/res/layout/container_inline_channel_form.xml index f7900b74..dadc77a0 100644 --- a/app/src/main/res/layout/container_inline_channel_form.xml +++ b/app/src/main/res/layout/container_inline_channel_form.xml @@ -45,7 +45,7 @@ android:layout_toRightOf="@id/inline_channel_form_layout_deposit" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginLeft="8dp" + android:layout_marginStart="8dp" android:layout_marginTop="30dp" android:fontFamily="@font/inter" android:text="@string/lbc" @@ -56,7 +56,7 @@ + android:layout_marginStart="2dp" /> @@ -105,7 +105,7 @@ android:layout_width="20dp" android:layout_height="20dp" android:layout_centerVertical="true" - android:layout_marginRight="24dp" + android:layout_marginEnd="24dp" android:layout_toLeftOf="@id/inline_channel_form_create_button" android:visibility="gone" /> @@ -113,7 +113,7 @@ android:id="@+id/inline_channel_form_create_button" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:fontFamily="@font/inter" android:text="@string/create"/> diff --git a/app/src/main/res/layout/content_main.xml b/app/src/main/res/layout/content_main.xml index a981e4d7..8ac05ab6 100644 --- a/app/src/main/res/layout/content_main.xml +++ b/app/src/main/res/layout/content_main.xml @@ -104,7 +104,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:layout_marginLeft="8dp" + android:layout_marginStart="8dp" android:fontFamily="@font/inter" android:text="@string/sdk_initializing" android:textSize="14sp" @@ -118,8 +118,8 @@ android:clickable="true" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginLeft="4dp" - android:layout_marginRight="4dp" + android:layout_marginStart="4dp" + android:layout_marginEnd="4dp" android:layout_marginBottom="4dp" android:visibility="gone" app:cardElevation="8dp" @@ -135,7 +135,7 @@ + android:layout_marginStart="8dp"> + android:layout_marginStart="8dp" + android:layout_marginEnd="8dp" /> + android:layout_marginStart="8dp" + android:layout_marginEnd="8dp" /> + android:layout_marginStart="8dp" + android:layout_marginEnd="8dp" /> + android:layout_marginStart="2dp" /> @@ -150,7 +150,7 @@ android:layout_height="20dp" android:layout_toLeftOf="@id/create_support_send" android:layout_centerVertical="true" - android:layout_marginRight="8dp" + android:layout_marginEnd="8dp" android:visibility="gone" /> diff --git a/app/src/main/res/layout/dialog_customize_tags.xml b/app/src/main/res/layout/dialog_customize_tags.xml index b19a9ff9..2efca530 100644 --- a/app/src/main/res/layout/dialog_customize_tags.xml +++ b/app/src/main/res/layout/dialog_customize_tags.xml @@ -8,8 +8,8 @@ android:layout_height="match_parent" android:orientation="vertical"> + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp" /> + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp" /> diff --git a/app/src/main/res/layout/dialog_discover.xml b/app/src/main/res/layout/dialog_discover.xml index e9a32daf..77386803 100644 --- a/app/src/main/res/layout/dialog_discover.xml +++ b/app/src/main/res/layout/dialog_discover.xml @@ -22,7 +22,7 @@ android:id="@+id/discover_loading" android:layout_width="20dp" android:layout_height="20dp" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:visibility="gone" /> @@ -46,8 +46,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" - android:layout_marginLeft="16dp" - android:layout_marginRight="16dp" + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp" android:fontFamily="@font/inter" android:text="@string/done" /> diff --git a/app/src/main/res/layout/dialog_repost_claim.xml b/app/src/main/res/layout/dialog_repost_claim.xml index d35ca589..3eadf43c 100644 --- a/app/src/main/res/layout/dialog_repost_claim.xml +++ b/app/src/main/res/layout/dialog_repost_claim.xml @@ -110,7 +110,7 @@ android:layout_toRightOf="@id/repost_input_layout_amount" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginLeft="8dp" + android:layout_marginStart="8dp" android:layout_marginTop="30dp" android:fontFamily="@font/inter" android:text="@string/lbc" @@ -121,7 +121,7 @@ + android:layout_marginStart="2dp" /> @@ -165,7 +165,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" - android:layout_marginRight="24dp" + android:layout_marginEnd="24dp" android:layout_toLeftOf="@id/repost_button" android:fontFamily="@font/inter" android:textSize="14sp" @@ -176,7 +176,7 @@ android:layout_height="20dp" android:layout_toLeftOf="@id/repost_button" android:layout_centerVertical="true" - android:layout_marginRight="8dp" + android:layout_marginEnd="8dp" android:visibility="gone" /> diff --git a/app/src/main/res/layout/exo_playback_control_view.xml b/app/src/main/res/layout/exo_playback_control_view.xml index 235ae4b1..8ad9382d 100644 --- a/app/src/main/res/layout/exo_playback_control_view.xml +++ b/app/src/main/res/layout/exo_playback_control_view.xml @@ -84,7 +84,7 @@ android:layout_width="48dp" android:layout_height="48dp" android:layout_alignParentTop="true" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:visibility="gone"> + android:layout_alignParentEnd="true"> + android:paddingStart="16dp" + android:paddingEnd="4dp"> @@ -19,8 +19,8 @@ android:layout_height="wrap_content" android:paddingTop="8dp" android:paddingBottom="8dp" - android:paddingLeft="8dp" - android:paddingRight="44dp" + android:paddingStart="8dp" + android:paddingEnd="44dp" android:visibility="invisible"> + android:paddingStart="12dp" + android:paddingEnd="16dp"> + android:layout_marginStart="2dp" /> diff --git a/app/src/main/res/layout/fragment_all_content.xml b/app/src/main/res/layout/fragment_all_content.xml index b1e8ef79..c0bf3422 100644 --- a/app/src/main/res/layout/fragment_all_content.xml +++ b/app/src/main/res/layout/fragment_all_content.xml @@ -25,8 +25,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="8dp" - android:layout_marginLeft="16dp" - android:layout_marginRight="16dp"> + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp"> + android:layout_alignParentEnd="true" /> @@ -88,7 +88,7 @@ android:layout_toRightOf="@id/all_content_sort_link" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginLeft="2dp" + android:layout_marginStart="2dp" android:fontFamily="@font/inter" android:textFontWeight="300" android:textSize="12sp" @@ -101,7 +101,7 @@ android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginLeft="2dp" + android:layout_marginStart="2dp" android:layout_centerVertical="true" android:visibility="gone"> @@ -129,7 +129,7 @@ android:layout_toRightOf="@id/all_content_sort_link" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginLeft="2dp" + android:layout_marginStart="2dp" android:fontFamily="@font/inter" android:textFontWeight="300" android:textSize="12sp" @@ -142,7 +142,7 @@ android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginLeft="2dp" + android:layout_marginStart="2dp" android:layout_toRightOf="@id/all_content_sort_link" android:visibility="gone"> @@ -170,7 +170,7 @@ android:background="?attr/selectableItemBackground" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:clickable="true" android:fontFamily="@font/inter" diff --git a/app/src/main/res/layout/fragment_channel.xml b/app/src/main/res/layout/fragment_channel.xml index 7602a54a..47e55da7 100644 --- a/app/src/main/res/layout/fragment_channel.xml +++ b/app/src/main/res/layout/fragment_channel.xml @@ -19,7 +19,7 @@ @@ -63,8 +63,8 @@ android:background="@color/channelCoverBackground" android:layout_width="match_parent" android:layout_height="wrap_content" - android:paddingLeft="4dp" - android:paddingRight="4dp" + android:paddingStart="4dp" + android:paddingEnd="4dp" android:paddingTop="2dp" android:paddingBottom="2dp" android:ellipsize="end" @@ -80,8 +80,8 @@ android:layout_height="wrap_content" android:layout_marginTop="2dp" android:layout_marginBottom="2dp" - android:paddingLeft="4dp" - android:paddingRight="4dp" + android:paddingStart="4dp" + android:paddingEnd="4dp" android:paddingTop="2dp" android:paddingBottom="2dp" android:fontFamily="@font/inter" @@ -95,7 +95,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" - android:paddingLeft="110dp" + android:paddingStart="110dp" app:tabGravity="fill" app:tabMode="scrollable"/> + android:layout_marginEnd="8dp"> + android:layout_marginEnd="8dp"> + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp"> @@ -66,7 +66,7 @@ android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginLeft="24dp" + android:layout_marginStart="24dp" android:layout_toRightOf="@id/channel_content_sort_link" android:visibility="gone"> diff --git a/app/src/main/res/layout/fragment_channel_form.xml b/app/src/main/res/layout/fragment_channel_form.xml index 4b5630eb..8515773a 100644 --- a/app/src/main/res/layout/fragment_channel_form.xml +++ b/app/src/main/res/layout/fragment_channel_form.xml @@ -29,7 +29,7 @@ android:background="@drawable/bg_small_icon" android:layout_width="24dp" android:layout_height="24dp" - android:layout_marginLeft="16dp" + android:layout_marginStart="16dp" android:layout_marginBottom="16dp" android:layout_alignParentBottom="true"> @@ -169,7 +169,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="28dp" - android:layout_marginLeft="12dp" + android:layout_marginStart="12dp" android:text="@string/at" android:visibility="gone" /> @@ -198,7 +198,7 @@ android:layout_toRightOf="@id/channel_form_input_layout_deposit" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginLeft="8dp" + android:layout_marginStart="8dp" android:layout_marginTop="30dp" android:fontFamily="@font/inter" android:text="@string/lbc" @@ -209,7 +209,7 @@ + android:layout_marginStart="2dp" /> @@ -323,7 +323,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" - android:layout_marginRight="24dp" + android:layout_marginEnd="24dp" android:layout_toLeftOf="@id/channel_form_save_button" android:fontFamily="@font/inter" android:textSize="14sp" @@ -333,14 +333,14 @@ android:layout_width="20dp" android:layout_height="20dp" android:layout_centerVertical="true" - android:layout_marginRight="24dp" + android:layout_marginEnd="24dp" android:layout_toLeftOf="@+id/channel_form_save_button" android:visibility="gone" /> diff --git a/app/src/main/res/layout/fragment_channel_manager.xml b/app/src/main/res/layout/fragment_channel_manager.xml index f53e3429..7cd6a948 100644 --- a/app/src/main/res/layout/fragment_channel_manager.xml +++ b/app/src/main/res/layout/fragment_channel_manager.xml @@ -15,9 +15,9 @@ android:id="@+id/channel_manager_list_loading" android:layout_width="20dp" android:layout_height="20dp" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:layout_marginTop="16dp" - android:layout_marginRight="16dp" + android:layout_marginEnd="16dp" android:visibility="gone" /> diff --git a/app/src/main/res/layout/fragment_file_view.xml b/app/src/main/res/layout/fragment_file_view.xml index 46ad0a64..8da1735e 100644 --- a/app/src/main/res/layout/fragment_file_view.xml +++ b/app/src/main/res/layout/fragment_file_view.xml @@ -19,7 +19,7 @@ + android:paddingStart="16dp" + android:paddingEnd="4dp"> + android:layout_marginEnd="48dp"> @@ -559,12 +559,12 @@ android:id="@+id/file_view_icon_unfollow" android:clickable="true" android:background="?attr/selectableItemBackground" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:layout_width="24dp" android:layout_height="24dp" - android:layout_marginLeft="16dp" - android:layout_marginRight="16dp" + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp" android:text="@string/fa_heart_broken" android:textSize="20dp" android:visibility="invisible" /> @@ -591,8 +591,8 @@ android:autoLink="all" android:textColorLink="@color/lbryGreen" android:textFontWeight="300" - android:layout_marginLeft="16dp" - android:layout_marginRight="16dp" /> + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp" /> + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp"> @@ -635,8 +635,8 @@ + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp"> + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp"> + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp"> + android:layout_alignParentEnd="true" /> + android:layout_alignParentEnd="true" /> @@ -92,7 +92,7 @@ android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginLeft="24dp" + android:layout_marginStart="24dp" android:layout_centerVertical="true" android:visibility="gone"> @@ -118,7 +118,7 @@ android:background="?attr/selectableItemBackground" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:clickable="true" android:fontFamily="@font/inter" @@ -131,8 +131,8 @@ android:id="@+id/following_page_info" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginLeft="16dp" - android:layout_marginRight="16dp" + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp" android:fontFamily="@font/inter" android:textFontWeight="300" android:text="@string/lbry_works_better" @@ -188,8 +188,8 @@ @@ -43,7 +43,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" - android:layout_marginLeft="24dp" + android:layout_marginStart="24dp" android:layout_toRightOf="@id/library_filter_link_purchases" android:fontFamily="@font/inter" android:text="@string/history" @@ -52,7 +52,7 @@ android:id="@+id/library_list_loading" android:layout_width="20dp" android:layout_height="20dp" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:visibility="gone" /> @@ -190,7 +190,7 @@ android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_centerVertical="true" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:fontFamily="@font/inter" android:text="@string/zero_mb" android:textFontWeight="300" @@ -216,7 +216,7 @@ android:layout_centerVertical="true" android:fontFamily="@font/inter" android:text="@string/audio" - android:layout_marginLeft="4dp" + android:layout_marginStart="4dp" android:textFontWeight="300" android:textSize="12sp" /> @@ -226,7 +226,7 @@ android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_centerVertical="true" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:fontFamily="@font/inter" android:text="@string/zero_mb" android:textFontWeight="300" @@ -252,7 +252,7 @@ android:layout_centerVertical="true" android:fontFamily="@font/inter" android:text="@string/images" - android:layout_marginLeft="4dp" + android:layout_marginStart="4dp" android:textFontWeight="300" android:textSize="12sp" /> @@ -262,7 +262,7 @@ android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_centerVertical="true" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:fontFamily="@font/inter" android:text="@string/zero_mb" android:textFontWeight="300" @@ -288,7 +288,7 @@ android:layout_centerVertical="true" android:fontFamily="@font/inter" android:text="@string/other" - android:layout_marginLeft="4dp" + android:layout_marginStart="4dp" android:textFontWeight="300" android:textSize="12sp" /> @@ -298,7 +298,7 @@ android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_centerVertical="true" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:fontFamily="@font/inter" android:text="@string/zero_mb" android:textFontWeight="300" diff --git a/app/src/main/res/layout/fragment_publish.xml b/app/src/main/res/layout/fragment_publish.xml index 4c7f637b..8c359df0 100644 --- a/app/src/main/res/layout/fragment_publish.xml +++ b/app/src/main/res/layout/fragment_publish.xml @@ -26,7 +26,7 @@ android:layout_weight="1" android:layout_width="0dp" android:layout_height="match_parent" - android:layout_marginLeft="-1.5dp"> + android:layout_marginStart="-1.5dp"> @@ -149,7 +149,7 @@ android:layout_centerVertical="true" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:fontFamily="@font/inter" android:textFontWeight="300" android:textSize="16sp" /> @@ -183,7 +183,7 @@ android:layout_width="20dp" android:layout_height="20dp" android:layout_centerVertical="true" - android:layout_marginRight="16dp" + android:layout_marginEnd="16dp" android:visibility="gone" /> @@ -280,7 +280,7 @@ android:id="@+id/publish_form_price_switch" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:layout_centerVertical="true" /> @@ -319,7 +319,7 @@ android:layout_width="110dp" android:layout_height="wrap_content" android:layout_toRightOf="@+id/publish_form_price_layout" - android:layout_marginLeft="4dp" + android:layout_marginStart="4dp" android:layout_marginTop="24dp" /> @@ -349,7 +349,7 @@ android:id="@+id/publish_form_generate_address" android:background="?attr/selectableItemBackground" android:clickable="true" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:layout_width="wrap_content" android:layout_height="wrap_content" @@ -419,7 +419,7 @@ android:layout_toRightOf="@id/publish_form_input_layout_deposit" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginLeft="8dp" + android:layout_marginStart="8dp" android:layout_marginTop="30dp" android:fontFamily="@font/inter" android:text="@string/lbc" @@ -430,7 +430,7 @@ + android:layout_marginStart="2dp" /> @@ -538,7 +538,7 @@ android:layout_height="wrap_content" android:layout_gravity="end" android:layout_marginTop="24dp" - android:layout_marginRight="16dp" + android:layout_marginEnd="16dp" android:fontFamily="@font/inter" android:text="@string/show_extra_fields" android:textFontWeight="300" /> @@ -546,8 +546,8 @@ diff --git a/app/src/main/res/layout/fragment_publishes.xml b/app/src/main/res/layout/fragment_publishes.xml index ce375030..9168ccc2 100644 --- a/app/src/main/res/layout/fragment_publishes.xml +++ b/app/src/main/res/layout/fragment_publishes.xml @@ -15,9 +15,9 @@ android:id="@+id/publishes_list_loading" android:layout_width="20dp" android:layout_height="20dp" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:layout_marginTop="16dp" - android:layout_marginRight="16dp" + android:layout_marginEnd="16dp" android:visibility="gone" /> diff --git a/app/src/main/res/layout/fragment_rewards.xml b/app/src/main/res/layout/fragment_rewards.xml index 46838086..a0bb0c8a 100644 --- a/app/src/main/res/layout/fragment_rewards.xml +++ b/app/src/main/res/layout/fragment_rewards.xml @@ -8,8 +8,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingTop="16dp" - android:paddingLeft="16dp" - android:paddingRight="16dp"> + android:paddingStart="16dp" + android:paddingEnd="16dp"> @@ -87,7 +87,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:layout_marginLeft="8dp" + android:layout_marginStart="8dp" android:fontFamily="@font/inter" android:textSize="24sp" android:textColor="@color/white" /> @@ -143,7 +143,7 @@ diff --git a/app/src/main/res/layout/fragment_transaction_history.xml b/app/src/main/res/layout/fragment_transaction_history.xml index 2762311d..0c545eac 100644 --- a/app/src/main/res/layout/fragment_transaction_history.xml +++ b/app/src/main/res/layout/fragment_transaction_history.xml @@ -9,8 +9,8 @@ android:id="@+id/transaction_history_no_transactions" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginLeft="16dp" - android:layout_marginRight="16dp" + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp" android:fontFamily="@font/inter" android:textSize="14sp" android:text="@string/no_transactions" diff --git a/app/src/main/res/layout/fragment_verification_phone.xml b/app/src/main/res/layout/fragment_verification_phone.xml index d517ba5e..814b53df 100644 --- a/app/src/main/res/layout/fragment_verification_phone.xml +++ b/app/src/main/res/layout/fragment_verification_phone.xml @@ -137,7 +137,7 @@ android:layout_width="24dp" android:layout_height="24dp" android:layout_toRightOf="@id/verification_phone_verify_button" - android:layout_marginLeft="16dp" + android:layout_marginStart="16dp" android:layout_centerVertical="true" android:visibility="gone" /> @@ -149,7 +149,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:fontFamily="@font/inter" android:text="@string/edit" android:textColor="@color/white" diff --git a/app/src/main/res/layout/fragment_verification_wallet.xml b/app/src/main/res/layout/fragment_verification_wallet.xml index dbed136c..0c6d6eff 100644 --- a/app/src/main/res/layout/fragment_verification_wallet.xml +++ b/app/src/main/res/layout/fragment_verification_wallet.xml @@ -33,7 +33,7 @@ android:layout_width="24dp" android:layout_height="24dp" android:layout_gravity="center" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:layout_marginTop="24dp" /> diff --git a/app/src/main/res/layout/fragment_wallet.xml b/app/src/main/res/layout/fragment_wallet.xml index 762e2866..4b0fff98 100644 --- a/app/src/main/res/layout/fragment_wallet.xml +++ b/app/src/main/res/layout/fragment_wallet.xml @@ -95,7 +95,7 @@ @@ -128,7 +128,7 @@ android:layout_height="wrap_content" android:orientation="vertical" android:layout_centerVertical="true" - android:layout_marginLeft="16dp" + android:layout_marginStart="16dp" android:layout_toRightOf="@id/claim_media_container"> + android:layout_marginEnd="2dp"> diff --git a/app/src/main/res/layout/list_item_stream.xml b/app/src/main/res/layout/list_item_stream.xml index 6e73ec64..69ee49ab 100644 --- a/app/src/main/res/layout/list_item_stream.xml +++ b/app/src/main/res/layout/list_item_stream.xml @@ -3,8 +3,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:paddingLeft="16dp" - android:paddingRight="16dp" + android:paddingStart="16dp" + android:paddingEnd="16dp" android:paddingTop="8dp" android:paddingBottom="8dp" android:clickable="true" @@ -32,7 +32,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:layout_marginLeft="4dp" + android:layout_marginStart="4dp" android:fontFamily="@font/inter" android:textColor="@color/lightForeground" android:textFontWeight="300" @@ -41,7 +41,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:layout_marginLeft="4dp" + android:layout_marginStart="4dp" android:fontFamily="@font/inter" android:text="@string/reposted" android:textColor="@color/lightForeground" @@ -83,8 +83,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" - android:layout_alignParentRight="true" - android:layout_marginRight="4dp" + android:layout_alignParentEnd="true" + android:layout_marginEnd="4dp" android:layout_marginBottom="4dp" android:fontFamily="@font/inter" android:textColor="@android:color/white" @@ -98,13 +98,13 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:layout_marginTop="4dp" - android:layout_marginRight="4dp" + android:layout_marginEnd="4dp" android:paddingTop="2dp" android:paddingBottom="2dp" - android:paddingLeft="6dp" - android:paddingRight="7dp" + android:paddingStart="6dp" + android:paddingEnd="7dp" android:visibility="gone"> diff --git a/app/src/main/res/layout/list_item_suggested_channel.xml b/app/src/main/res/layout/list_item_suggested_channel.xml index 9c461b53..49ebf048 100644 --- a/app/src/main/res/layout/list_item_suggested_channel.xml +++ b/app/src/main/res/layout/list_item_suggested_channel.xml @@ -10,8 +10,8 @@ android:focusable="true" android:paddingTop="12dp" android:paddingBottom="12dp" - android:paddingLeft="8dp" - android:paddingRight="8dp"> + android:paddingStart="8dp" + android:paddingEnd="8dp"> + android:paddingStart="8dp" + android:paddingEnd="8dp" /> \ No newline at end of file diff --git a/app/src/main/res/layout/list_item_tag.xml b/app/src/main/res/layout/list_item_tag.xml index 9881babe..f37e1d6c 100644 --- a/app/src/main/res/layout/list_item_tag.xml +++ b/app/src/main/res/layout/list_item_tag.xml @@ -5,19 +5,19 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6dp" - android:layout_marginRight="6dp" + android:layout_marginEnd="6dp" android:orientation="horizontal" android:paddingTop="4dp" android:paddingBottom="4dp" - android:paddingLeft="8dp" - android:paddingRight="12dp" + android:paddingStart="8dp" + android:paddingEnd="12dp" android:foreground="?attr/selectableItemBackground"> \ No newline at end of file diff --git a/app/src/main/res/layout/list_item_url_suggestion.xml b/app/src/main/res/layout/list_item_url_suggestion.xml index 335c865e..9a6aad0e 100644 --- a/app/src/main/res/layout/list_item_url_suggestion.xml +++ b/app/src/main/res/layout/list_item_url_suggestion.xml @@ -2,8 +2,8 @@ \ No newline at end of file -- 2.45.2 From 67a7cf1db26fe2f94b279ab3676f5551bad16c14 Mon Sep 17 00:00:00 2001 From: Javi Rueda Date: Tue, 8 Sep 2020 11:01:03 +0200 Subject: [PATCH 2/2] Change it also for relative layout properties --- app/src/main/res/layout/card_invites_by_email.xml | 2 +- app/src/main/res/layout/card_invites_by_link.xml | 2 +- app/src/main/res/layout/card_reward_driver.xml | 2 +- app/src/main/res/layout/card_wallet_balance.xml | 4 ++-- .../main/res/layout/card_wallet_receive_credits.xml | 2 +- app/src/main/res/layout/card_wallet_send_credits.xml | 6 +++--- app/src/main/res/layout/container_comment_form.xml | 4 ++-- .../res/layout/container_inline_channel_form.xml | 6 +++--- app/src/main/res/layout/content_main.xml | 4 ++-- app/src/main/res/layout/dialog_content_scope.xml | 4 ++-- app/src/main/res/layout/dialog_content_sort.xml | 6 +++--- app/src/main/res/layout/dialog_create_support.xml | 6 +++--- app/src/main/res/layout/dialog_repost_claim.xml | 10 +++++----- .../main/res/layout/exo_playback_control_view.xml | 12 ++++++------ app/src/main/res/layout/fragment_all_content.xml | 8 ++++---- app/src/main/res/layout/fragment_channel.xml | 2 +- app/src/main/res/layout/fragment_channel_content.xml | 2 +- app/src/main/res/layout/fragment_channel_form.xml | 8 ++++---- app/src/main/res/layout/fragment_file_view.xml | 6 +++--- app/src/main/res/layout/fragment_following.xml | 2 +- app/src/main/res/layout/fragment_library.xml | 12 ++++++------ app/src/main/res/layout/fragment_publish.xml | 4 ++-- app/src/main/res/layout/fragment_publish_form.xml | 10 +++++----- app/src/main/res/layout/fragment_rewards.xml | 2 +- .../main/res/layout/fragment_verification_phone.xml | 2 +- app/src/main/res/layout/list_item_channel.xml | 2 +- app/src/main/res/layout/list_item_comment.xml | 2 +- app/src/main/res/layout/list_item_editors_choice.xml | 2 +- .../res/layout/list_item_featured_search_result.xml | 2 +- app/src/main/res/layout/list_item_stream.xml | 2 +- app/src/main/res/layout/list_item_url_suggestion.xml | 2 +- 31 files changed, 70 insertions(+), 70 deletions(-) diff --git a/app/src/main/res/layout/card_invites_by_email.xml b/app/src/main/res/layout/card_invites_by_email.xml index c010c67c..ff3dcd84 100644 --- a/app/src/main/res/layout/card_invites_by_email.xml +++ b/app/src/main/res/layout/card_invites_by_email.xml @@ -48,7 +48,7 @@ android:layout_height="20dp" android:layout_centerVertical="true" android:layout_marginEnd="24dp" - android:layout_toLeftOf="@id/invites_email_button" + android:layout_toStartOf="@id/invites_email_button" android:visibility="gone" /> diff --git a/app/src/main/res/layout/card_wallet_receive_credits.xml b/app/src/main/res/layout/card_wallet_receive_credits.xml index a544547b..d1664aae 100644 --- a/app/src/main/res/layout/card_wallet_receive_credits.xml +++ b/app/src/main/res/layout/card_wallet_receive_credits.xml @@ -36,7 +36,7 @@ android:id="@+id/wallet_receive_address" android:clickable="true" android:layout_centerVertical="true" - android:layout_toLeftOf="@id/wallet_copy_receive_address" + android:layout_toStartOf="@id/wallet_copy_receive_address" android:layout_width="match_parent" android:layout_height="wrap_content" android:fontFamily="@font/inter" diff --git a/app/src/main/res/layout/card_wallet_send_credits.xml b/app/src/main/res/layout/card_wallet_send_credits.xml index deca489d..5a39b4d2 100644 --- a/app/src/main/res/layout/card_wallet_send_credits.xml +++ b/app/src/main/res/layout/card_wallet_send_credits.xml @@ -52,7 +52,7 @@ diff --git a/app/src/main/res/layout/container_comment_form.xml b/app/src/main/res/layout/container_comment_form.xml index 913b1843..d92f96af 100644 --- a/app/src/main/res/layout/container_comment_form.xml +++ b/app/src/main/res/layout/container_comment_form.xml @@ -136,7 +136,7 @@ diff --git a/app/src/main/res/layout/container_inline_channel_form.xml b/app/src/main/res/layout/container_inline_channel_form.xml index dadc77a0..76318b5a 100644 --- a/app/src/main/res/layout/container_inline_channel_form.xml +++ b/app/src/main/res/layout/container_inline_channel_form.xml @@ -42,7 +42,7 @@ diff --git a/app/src/main/res/layout/dialog_repost_claim.xml b/app/src/main/res/layout/dialog_repost_claim.xml index 3eadf43c..ada26944 100644 --- a/app/src/main/res/layout/dialog_repost_claim.xml +++ b/app/src/main/res/layout/dialog_repost_claim.xml @@ -74,7 +74,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerVertical="true" - android:layout_toRightOf="@id/repost_name_prefix" + android:layout_toEndOf="@id/repost_name_prefix" android:fontFamily="@font/inter" android:singleLine="true" android:textSize="14sp" @@ -107,7 +107,7 @@ @@ -174,7 +174,7 @@ android:id="@+id/repost_progress" android:layout_width="20dp" android:layout_height="20dp" - android:layout_toLeftOf="@id/repost_button" + android:layout_toStartOf="@id/repost_button" android:layout_centerVertical="true" android:layout_marginEnd="8dp" android:visibility="gone" /> diff --git a/app/src/main/res/layout/exo_playback_control_view.xml b/app/src/main/res/layout/exo_playback_control_view.xml index 8ad9382d..e5385779 100644 --- a/app/src/main/res/layout/exo_playback_control_view.xml +++ b/app/src/main/res/layout/exo_playback_control_view.xml @@ -14,7 +14,7 @@ android:layout_centerVertical="true" android:layout_width="72dp" android:layout_height="72dp" - android:layout_toLeftOf="@id/player_play_pause"> + android:layout_toStartOf="@id/player_play_pause"> + android:layout_toEndOf="@id/player_play_pause"> + android:layout_toStartOf="@id/player_toggle_fullscreen"> @@ -334,7 +334,7 @@ android:layout_height="20dp" android:layout_centerVertical="true" android:layout_marginEnd="24dp" - android:layout_toLeftOf="@+id/channel_form_save_button" + android:layout_toStartOf="@+id/channel_form_save_button" android:visibility="gone" /> + android:layout_toStartOf="@id/file_view_icon_follow"> @@ -174,7 +174,7 @@ android:layout_height="10dp" android:layout_centerVertical="true" /> + android:layout_toEndOf="@id/publish_vertical_divider"> @@ -318,7 +318,7 @@ android:entries="@array/publish_currencies" android:layout_width="110dp" android:layout_height="wrap_content" - android:layout_toRightOf="@+id/publish_form_price_layout" + android:layout_toEndOf="@+id/publish_form_price_layout" android:layout_marginStart="4dp" android:layout_marginTop="24dp" /> @@ -416,7 +416,7 @@ diff --git a/app/src/main/res/layout/fragment_verification_phone.xml b/app/src/main/res/layout/fragment_verification_phone.xml index 814b53df..266de2b5 100644 --- a/app/src/main/res/layout/fragment_verification_phone.xml +++ b/app/src/main/res/layout/fragment_verification_phone.xml @@ -136,7 +136,7 @@ android:id="@+id/verification_phone_verify_progress" android:layout_width="24dp" android:layout_height="24dp" - android:layout_toRightOf="@id/verification_phone_verify_button" + android:layout_toEndOf="@id/verification_phone_verify_button" android:layout_marginStart="16dp" android:layout_centerVertical="true" android:visibility="gone" /> diff --git a/app/src/main/res/layout/list_item_channel.xml b/app/src/main/res/layout/list_item_channel.xml index 5ed3cd13..685370c2 100644 --- a/app/src/main/res/layout/list_item_channel.xml +++ b/app/src/main/res/layout/list_item_channel.xml @@ -129,7 +129,7 @@ android:orientation="vertical" android:layout_centerVertical="true" android:layout_marginStart="16dp" - android:layout_toRightOf="@id/claim_media_container"> + android:layout_toEndOf="@id/claim_media_container"> diff --git a/app/src/main/res/layout/list_item_editors_choice.xml b/app/src/main/res/layout/list_item_editors_choice.xml index c6733d5d..49aad7f6 100644 --- a/app/src/main/res/layout/list_item_editors_choice.xml +++ b/app/src/main/res/layout/list_item_editors_choice.xml @@ -49,7 +49,7 @@ android:layout_centerVertical="true"/> + android:layout_toEndOf="@id/claim_media_container"> + android:layout_toEndOf="@id/claim_media_container"> -- 2.45.2