From 6083df1bd44dfb87f21ff9d3b6373d2b1a28d0ff Mon Sep 17 00:00:00 2001 From: h4h13 Date: Mon, 30 Dec 2019 10:42:22 +0530 Subject: [PATCH] Fix now playing theme text two lines --- .../fragment_player_playback_controls.xml | 2 +- ...fragment_blur_player_playback_controls.xml | 380 ++++++++--------- ...fragment_card_player_playback_controls.xml | 2 +- ...ragment_color_player_playback_controls.xml | 372 ++++++++--------- .../layout/fragment_fit_playback_controls.xml | 184 ++++---- ...fragment_flat_player_playback_controls.xml | 4 - .../layout/fragment_full_player_controls.xml | 386 ++++++++--------- ...fragment_lock_screen_playback_controls.xml | 394 +++++++++--------- .../fragment_material_playback_controls.xml | 6 +- .../fragment_plain_controls_fragment.xml | 4 - .../fragment_player_playback_controls.xml | 2 +- .../fragment_simple_controls_fragment.xml | 2 +- 12 files changed, 865 insertions(+), 873 deletions(-) diff --git a/app/src/main/res/layout-xlarge-land/fragment_player_playback_controls.xml b/app/src/main/res/layout-xlarge-land/fragment_player_playback_controls.xml index 8709690e..6ab13512 100755 --- a/app/src/main/res/layout-xlarge-land/fragment_player_playback_controls.xml +++ b/app/src/main/res/layout-xlarge-land/fragment_player_playback_controls.xml @@ -38,7 +38,7 @@ android:layout_height="wrap_content" android:layout_gravity="center" android:ellipsize="end" - android:maxLines="1" + android:maxLines="2" android:paddingStart="24dp" android:paddingEnd="24dp" android:textAppearance="@style/TextViewHeadline5" diff --git a/app/src/main/res/layout/fragment_blur_player_playback_controls.xml b/app/src/main/res/layout/fragment_blur_player_playback_controls.xml index 91ecd9b9..6455e657 100644 --- a/app/src/main/res/layout/fragment_blur_player_playback_controls.xml +++ b/app/src/main/res/layout/fragment_blur_player_playback_controls.xml @@ -13,211 +13,211 @@ --> + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/playback_controls" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center_vertical" + android:orientation="vertical" + tools:ignore="MissingPrefix"> - + - + - + - - + + - + - - + + - + - + - + - + - + - + - + - + - + - + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_card_player_playback_controls.xml b/app/src/main/res/layout/fragment_card_player_playback_controls.xml index 2e709cd5..aba4ceb1 100644 --- a/app/src/main/res/layout/fragment_card_player_playback_controls.xml +++ b/app/src/main/res/layout/fragment_card_player_playback_controls.xml @@ -113,8 +113,8 @@ android:focusableInTouchMode="true" android:freezesText="true" android:marqueeRepeatLimit="marquee_forever" + android:maxLines="2" android:scrollHorizontally="true" - android:singleLine="true" android:textStyle="bold" tools:text="@tools:sample/lorem/random" /> diff --git a/app/src/main/res/layout/fragment_color_player_playback_controls.xml b/app/src/main/res/layout/fragment_color_player_playback_controls.xml index 2a0aa277..5ff78bee 100644 --- a/app/src/main/res/layout/fragment_color_player_playback_controls.xml +++ b/app/src/main/res/layout/fragment_color_player_playback_controls.xml @@ -1,211 +1,211 @@ + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/playback_controls" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + tools:ignore="MissingPrefix"> - + - + android:gravity="center_vertical|left|end" + android:paddingLeft="8dp" + android:singleLine="true" + android:textSize="12sp" + tools:ignore="RtlHardcoded,RtlSymmetry" + tools:text="00:22" /> - + android:gravity="center_vertical|right|end" + android:paddingRight="8dp" + android:singleLine="true" + android:textSize="12sp" + tools:ignore="RtlHardcoded,RtlSymmetry" + tools:text="04:22" /> - - + + - + - - + + - + - + - + - + - + - + - + - + - + - + diff --git a/app/src/main/res/layout/fragment_fit_playback_controls.xml b/app/src/main/res/layout/fragment_fit_playback_controls.xml index 2d4b38d9..69a17fbc 100644 --- a/app/src/main/res/layout/fragment_fit_playback_controls.xml +++ b/app/src/main/res/layout/fragment_fit_playback_controls.xml @@ -1,107 +1,103 @@ + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/playback_controls" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:orientation="vertical" + tools:ignore="MissingPrefix"> - + - + - android:gravity="center_vertical|left|end" - android:paddingLeft="8dp" - android:singleLine="true" - android:textColor="?android:attr/textColorSecondary" - android:textSize="12sp" - tools:ignore="RtlHardcoded,RtlSymmetry" - tools:text="00:22" /> + - + - android:gravity="center_vertical|right|end" - android:paddingRight="8dp" - android:singleLine="true" - android:textColor="?android:attr/textColorSecondary" - android:textSize="12sp" - tools:ignore="RtlHardcoded,RtlSymmetry" - tools:text="00:22" /> + - + + - + - - - - - - - - - - + diff --git a/app/src/main/res/layout/fragment_flat_player_playback_controls.xml b/app/src/main/res/layout/fragment_flat_player_playback_controls.xml index f39d5a6b..a43b31ab 100644 --- a/app/src/main/res/layout/fragment_flat_player_playback_controls.xml +++ b/app/src/main/res/layout/fragment_flat_player_playback_controls.xml @@ -23,8 +23,6 @@ android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_alignParentLeft="true" - - android:gravity="center_vertical|left|end" android:paddingLeft="8dp" android:singleLine="true" @@ -38,8 +36,6 @@ android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_alignParentRight="true" - - android:gravity="center_vertical|right|end" android:paddingRight="8dp" android:singleLine="true" diff --git a/app/src/main/res/layout/fragment_full_player_controls.xml b/app/src/main/res/layout/fragment_full_player_controls.xml index d80447f5..02afc960 100644 --- a/app/src/main/res/layout/fragment_full_player_controls.xml +++ b/app/src/main/res/layout/fragment_full_player_controls.xml @@ -1,217 +1,217 @@ + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/player_footer_frame" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + tools:background="@color/md_grey_800"> - + - + - + - + - + - + - + - + android:gravity="center_vertical|left|end" + android:paddingLeft="8dp" + android:singleLine="true" + android:textColor="@color/md_white_1000" + android:textSize="12sp" + tools:ignore="RtlHardcoded,RtlSymmetry" + tools:text="00:00" /> - + android:gravity="center_vertical|right|end" + android:paddingRight="8dp" + android:singleLine="true" + android:textColor="@color/md_white_1000" + android:textSize="12sp" + tools:ignore="RtlHardcoded,RtlSymmetry" + tools:text="00:00" /> - - + + - + - + - + - + - + - + - + - + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_lock_screen_playback_controls.xml b/app/src/main/res/layout/fragment_lock_screen_playback_controls.xml index 87a6f717..ae795ddd 100644 --- a/app/src/main/res/layout/fragment_lock_screen_playback_controls.xml +++ b/app/src/main/res/layout/fragment_lock_screen_playback_controls.xml @@ -1,208 +1,216 @@ + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/playback_controls" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:paddingTop="8dp" + tools:ignore="MissingPrefix"> - + - + + + + + + + + + + + + - android:gravity="center_vertical|left|end" - android:paddingLeft="8dp" - android:singleLine="true" - android:textColor="?android:attr/textColorSecondary" - android:textSize="12sp" - tools:ignore="RtlHardcoded,RtlSymmetry" - tools:text="00:22" /> + - + - android:gravity="center_vertical|right|end" - android:paddingRight="8dp" - android:singleLine="true" - android:textColor="?android:attr/textColorSecondary" - android:textSize="12sp" - tools:ignore="RtlHardcoded,RtlSymmetry" - tools:text="00:22" /> + - - + - + - + + - - - - - - - - - - - - - - - - - + diff --git a/app/src/main/res/layout/fragment_material_playback_controls.xml b/app/src/main/res/layout/fragment_material_playback_controls.xml index 6c0291e1..2c1997a9 100644 --- a/app/src/main/res/layout/fragment_material_playback_controls.xml +++ b/app/src/main/res/layout/fragment_material_playback_controls.xml @@ -24,8 +24,6 @@ android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_alignParentLeft="true" - - android:gravity="center_vertical|left|end" android:paddingLeft="8dp" android:singleLine="true" @@ -39,8 +37,6 @@ android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_alignParentRight="true" - - android:gravity="center_vertical|right|end" android:paddingRight="8dp" android:singleLine="true" @@ -102,7 +98,7 @@ android:layout_gravity="center" android:ellipsize="end" android:gravity="center" - android:maxLines="1" + android:maxLines="2" android:paddingStart="16dp" android:paddingEnd="16dp" android:textAppearance="@style/TextViewBody1" diff --git a/app/src/main/res/layout/fragment_plain_controls_fragment.xml b/app/src/main/res/layout/fragment_plain_controls_fragment.xml index 779ed823..6e49f57a 100644 --- a/app/src/main/res/layout/fragment_plain_controls_fragment.xml +++ b/app/src/main/res/layout/fragment_plain_controls_fragment.xml @@ -22,8 +22,6 @@ android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_alignParentLeft="true" - - android:gravity="center_vertical|left|end" android:paddingLeft="8dp" android:singleLine="true" @@ -37,8 +35,6 @@ android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_alignParentRight="true" - - android:gravity="center_vertical|right|end" android:paddingRight="8dp" android:singleLine="true" diff --git a/app/src/main/res/layout/fragment_player_playback_controls.xml b/app/src/main/res/layout/fragment_player_playback_controls.xml index 525003fd..b1dfa4de 100755 --- a/app/src/main/res/layout/fragment_player_playback_controls.xml +++ b/app/src/main/res/layout/fragment_player_playback_controls.xml @@ -103,7 +103,7 @@ android:layout_gravity="center" android:ellipsize="end" android:gravity="center" - android:maxLines="1" + android:maxLines="2" android:paddingStart="16dp" android:paddingEnd="16dp" android:textAppearance="@style/TextViewBody1" diff --git a/app/src/main/res/layout/fragment_simple_controls_fragment.xml b/app/src/main/res/layout/fragment_simple_controls_fragment.xml index 740b3eae..7e4fc971 100644 --- a/app/src/main/res/layout/fragment_simple_controls_fragment.xml +++ b/app/src/main/res/layout/fragment_simple_controls_fragment.xml @@ -43,7 +43,7 @@ android:layout_gravity="center" android:ellipsize="end" android:gravity="center" - android:maxLines="1" + android:maxLines="2" android:paddingStart="16dp" android:paddingEnd="16dp" android:textAppearance="@style/TextViewBody2"