From b89714c5fd90a93477da6ad4efe969d87fc910b9 Mon Sep 17 00:00:00 2001 From: dkanada Date: Wed, 16 Sep 2020 05:11:52 +0900 Subject: [PATCH] replace left and right with start and end in layout files --- .../res/layout-land/fragment_card_player.xml | 19 +++++++++---------- .../res/layout-land/fragment_flat_player.xml | 1 - app/src/main/res/layout/app_widget_card.xml | 4 ++-- .../main/res/layout/app_widget_classic.xml | 4 ++-- .../main/res/layout/fragment_card_player.xml | 18 +++++++++--------- ...fragment_card_player_playback_controls.xml | 8 ++++---- .../main/res/layout/fragment_flat_player.xml | 8 ++++---- ...fragment_flat_player_playback_controls.xml | 8 ++++---- .../main/res/layout/fragment_mini_player.xml | 2 -- .../main/res/layout/item_list_no_image.xml | 2 -- .../main/res/layout/item_list_single_row.xml | 2 -- .../res/layout/navigation_drawer_header.xml | 8 ++++---- app/src/main/res/layout/notification.xml | 13 ++++++------- app/src/main/res/layout/notification_big.xml | 17 ++++++----------- ...ference_dialog_direct_play_codecs_item.xml | 1 - .../res/layout/sliding_music_panel_layout.xml | 8 ++++---- 16 files changed, 54 insertions(+), 69 deletions(-) diff --git a/app/src/main/res/layout-land/fragment_card_player.xml b/app/src/main/res/layout-land/fragment_card_player.xml index c1bc1111..d4f1b086 100644 --- a/app/src/main/res/layout-land/fragment_card_player.xml +++ b/app/src/main/res/layout-land/fragment_card_player.xml @@ -5,7 +5,7 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - + - + app:umanoFadeColor="#00000000" + app:umanoOverlay="true" + app:umanoPanelHeight="0dp" + app:umanoScrollableView="@+id/player_recycler_view" + app:umanoShadowHeight="0dp"> diff --git a/app/src/main/res/layout/app_widget_classic.xml b/app/src/main/res/layout/app_widget_classic.xml index 010454a0..ad431aaf 100644 --- a/app/src/main/res/layout/app_widget_classic.xml +++ b/app/src/main/res/layout/app_widget_classic.xml @@ -67,8 +67,8 @@ android:layout_height="wrap_content" android:layout_above="@+id/media_actions" android:layout_alignParentTop="true" - android:layout_marginLeft="8dp" - android:layout_marginRight="8dp" + android:layout_marginStart="8dp" + android:layout_marginEnd="8dp" android:gravity="center" android:orientation="vertical"> diff --git a/app/src/main/res/layout/fragment_card_player.xml b/app/src/main/res/layout/fragment_card_player.xml index f4b04a38..8c473946 100644 --- a/app/src/main/res/layout/fragment_card_player.xml +++ b/app/src/main/res/layout/fragment_card_player.xml @@ -4,20 +4,20 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - + - + app:umanoFadeColor="#00000000" + app:umanoOverlay="true" + app:umanoPanelHeight="0dp" + app:umanoScrollableView="@+id/player_recycler_view" + app:umanoShadowHeight="0dp"> diff --git a/app/src/main/res/layout/fragment_flat_player.xml b/app/src/main/res/layout/fragment_flat_player.xml index 9548af53..66ffe8f7 100644 --- a/app/src/main/res/layout/fragment_flat_player.xml +++ b/app/src/main/res/layout/fragment_flat_player.xml @@ -1,5 +1,6 @@ @@ -21,16 +22,15 @@ + app:umanoPanelHeight="0dp" + app:umanoScrollableView="@+id/player_recycler_view" + app:umanoShadowHeight="0dp"> diff --git a/app/src/main/res/layout/fragment_mini_player.xml b/app/src/main/res/layout/fragment_mini_player.xml index e44dd7b6..22c3ebec 100644 --- a/app/src/main/res/layout/fragment_mini_player.xml +++ b/app/src/main/res/layout/fragment_mini_player.xml @@ -30,8 +30,6 @@ android:layout_width="0dp" android:layout_height="match_parent" android:layout_marginEnd="16dp" - android:layout_marginLeft="16dp" - android:layout_marginRight="16dp" android:layout_marginStart="16dp" android:layout_weight="1" android:gravity="center_vertical" diff --git a/app/src/main/res/layout/item_list_no_image.xml b/app/src/main/res/layout/item_list_no_image.xml index 316ff9dc..de1f3189 100644 --- a/app/src/main/res/layout/item_list_no_image.xml +++ b/app/src/main/res/layout/item_list_no_image.xml @@ -12,7 +12,6 @@ android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="center_vertical|start" - android:layout_marginLeft="-8dp" android:layout_marginStart="-8dp" android:tint="?attr/iconColor" android:tintMode="src_in" @@ -75,7 +74,6 @@ android:layout_width="match_parent" android:layout_height="1dp" android:layout_gravity="bottom" - android:layout_marginLeft="72dp" android:layout_marginStart="72dp" android:background="?attr/dividerColor" /> diff --git a/app/src/main/res/layout/item_list_single_row.xml b/app/src/main/res/layout/item_list_single_row.xml index 00119f59..837d993e 100644 --- a/app/src/main/res/layout/item_list_single_row.xml +++ b/app/src/main/res/layout/item_list_single_row.xml @@ -57,8 +57,6 @@ android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_marginEnd="16dp" - android:layout_marginLeft="16dp" - android:layout_marginRight="16dp" android:layout_marginStart="16dp" android:layout_weight="1" android:fontFamily="sans-serif" diff --git a/app/src/main/res/layout/navigation_drawer_header.xml b/app/src/main/res/layout/navigation_drawer_header.xml index de6dc923..2d555ec9 100644 --- a/app/src/main/res/layout/navigation_drawer_header.xml +++ b/app/src/main/res/layout/navigation_drawer_header.xml @@ -36,8 +36,8 @@ android:id="@+id/title" 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="sans-serif-medium" android:singleLine="true" android:textAppearance="@style/TextAppearance.AppCompat.Subhead" @@ -48,8 +48,8 @@ android:id="@+id/text" 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="sans-serif" android:singleLine="true" android:textAppearance="@style/TextAppearance.AppCompat.Body1" diff --git a/app/src/main/res/layout/notification.xml b/app/src/main/res/layout/notification.xml index deaba784..1d08a6dc 100644 --- a/app/src/main/res/layout/notification.xml +++ b/app/src/main/res/layout/notification.xml @@ -81,7 +81,6 @@ android:layout_height="match_parent" android:layout_gravity="center_vertical|end" android:layout_marginEnd="6dp" - android:layout_marginRight="6dp" android:layoutDirection="ltr" android:orientation="horizontal" tools:ignore="UnusedAttribute"> @@ -92,8 +91,8 @@ style="@style/Widget.AppCompat.Button.Borderless" android:layout_width="48dp" android:layout_height="match_parent" - android:layout_marginLeft="2dp" - android:layout_marginRight="2dp" + android:layout_marginStart="2dp" + android:layout_marginEnd="2dp" android:layout_weight="1" android:background="@drawable/notification_selector" android:gravity="center" @@ -106,8 +105,8 @@ style="@style/Widget.AppCompat.Button.Borderless" android:layout_width="48dp" android:layout_height="match_parent" - android:layout_marginLeft="2dp" - android:layout_marginRight="2dp" + android:layout_marginStart="2dp" + android:layout_marginEnd="2dp" android:layout_weight="1" android:background="@drawable/notification_selector" android:gravity="center" @@ -120,8 +119,8 @@ style="@style/Widget.AppCompat.Button.Borderless" android:layout_width="48dp" android:layout_height="match_parent" - android:layout_marginLeft="2dp" - android:layout_marginRight="2dp" + android:layout_marginStart="2dp" + android:layout_marginEnd="2dp" android:layout_weight="1" android:background="@drawable/notification_selector" android:gravity="center" diff --git a/app/src/main/res/layout/notification_big.xml b/app/src/main/res/layout/notification_big.xml index 50428d2f..785dabbb 100644 --- a/app/src/main/res/layout/notification_big.xml +++ b/app/src/main/res/layout/notification_big.xml @@ -34,7 +34,6 @@ android:layout_width="36dp" android:layout_height="36dp" android:layout_alignParentEnd="true" - android:layout_alignParentRight="true" android:layout_margin="2dp" android:background="@drawable/notification_selector" android:padding="6dp" @@ -46,12 +45,9 @@ android:layout_width="match_parent" android:layout_height="64dp" android:layout_marginBottom="8dp" - android:layout_marginLeft="12dp" android:layout_marginStart="12dp" android:layout_marginTop="8dp" android:layout_toEndOf="@id/image" - android:layout_toLeftOf="@id/action_quit" - android:layout_toRightOf="@id/image" android:layout_toStartOf="@id/action_quit" android:minHeight="@dimen/notification_large_icon_height" android:orientation="vertical"> @@ -99,7 +95,6 @@ android:layout_marginEnd="12dp" android:layout_marginStart="12dp" android:layout_toEndOf="@id/image" - android:layout_toRightOf="@id/image" android:layoutDirection="ltr" android:orientation="horizontal" tools:ignore="UnusedAttribute"> @@ -110,8 +105,8 @@ style="@style/Widget.AppCompat.Button.Borderless" android:layout_width="48dp" android:layout_height="match_parent" - android:layout_marginLeft="2dp" - android:layout_marginRight="2dp" + android:layout_marginStart="2dp" + android:layout_marginEnd="2dp" android:layout_weight="1" android:background="@drawable/notification_selector" android:gravity="center" @@ -124,8 +119,8 @@ style="@style/Widget.AppCompat.Button.Borderless" android:layout_width="48dp" android:layout_height="match_parent" - android:layout_marginLeft="2dp" - android:layout_marginRight="2dp" + android:layout_marginStart="2dp" + android:layout_marginEnd="2dp" android:layout_weight="1" android:background="@drawable/notification_selector" android:gravity="center" @@ -138,8 +133,8 @@ style="@style/Widget.AppCompat.Button.Borderless" android:layout_width="48dp" android:layout_height="match_parent" - android:layout_marginLeft="2dp" - android:layout_marginRight="2dp" + android:layout_marginStart="2dp" + android:layout_marginEnd="2dp" android:layout_weight="1" android:background="@drawable/notification_selector" android:gravity="center" diff --git a/app/src/main/res/layout/preference_dialog_direct_play_codecs_item.xml b/app/src/main/res/layout/preference_dialog_direct_play_codecs_item.xml index 436681e2..64f1616b 100644 --- a/app/src/main/res/layout/preference_dialog_direct_play_codecs_item.xml +++ b/app/src/main/res/layout/preference_dialog_direct_play_codecs_item.xml @@ -1,6 +1,5 @@ + app:umanoOverlay="false" + app:umanoPanelHeight="0dp" + app:umanoShadowHeight="@dimen/card_elevation">